Add nodes to an accessible group after they are augmented.

This commit is contained in:
Nolan Darilek 2018-06-07 21:18:36 +00:00
parent 3694e50dda
commit 319c1297c4

View File

@ -12,6 +12,9 @@ func gui_input():
print("GUI input.") print("GUI input.")
func _init(node): func _init(node):
if node.is_in_group("accessible"):
return
node.add_to_group("accessible")
# print(node.get_path()) # print(node.get_path())
self.node = node self.node = node
self.node.connect("focus_entered", self, "focused") self.node.connect("focus_entered", self, "focused")