summaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd
index b9f35b6b..7c547d64 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -108,6 +108,8 @@ var settings: Dictionary
var server_url = ""
var error_message = ""
+var focus_auto_changed := false
+
var fade_next := false # Set true when transitioning from another scene (fade in requried)
func _init():
@@ -143,6 +145,8 @@ func on_vulkan() -> bool:
return ProjectSettings.get_setting("rendering/rendering_device/driver") == "vulkan"
func focus_first_button(node: Node) -> bool:
+ focus_auto_changed = true
+
if node is Button:
node.grab_focus()
print("Node %s (%s) was selected for focus" % [node.name, node])