-
-
Save henriquelalves/6ad4f74c43a16bb442ccbaf3bad190d7 to your computer and use it in GitHub Desktop.
quickfix on plugin node deselection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func forward_input_event(event): | |
if event.type == InputEvent.MOUSE_BUTTON: | |
if event.button_index == BUTTON_LEFT and get_selection().get_selected_nodes().size() == 0: | |
make_visible(false) | |
return false | |
func make_visible(visible): | |
if visible: | |
dock.show() | |
else: | |
dock.hide() | |
func handles(object): | |
return object extends GodotTANScript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment