Skip to content

Instantly share code, notes, and snippets.

@henriquelalves
Created March 22, 2017 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henriquelalves/6ad4f74c43a16bb442ccbaf3bad190d7 to your computer and use it in GitHub Desktop.
Save henriquelalves/6ad4f74c43a16bb442ccbaf3bad190d7 to your computer and use it in GitHub Desktop.
quickfix on plugin node deselection
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