aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-06-29 21:53:11 +0200
committertpart <tpart120@proton.me>2024-06-29 21:53:15 +0200
commitb53f3d198e5899a597e5a321a277cf0ef74fec7b (patch)
tree907768d65f4a24948718dfe986c34fd2f71a3e7e /client/global.gd
parentc0f9942cd4562b169a4dddfdc083e505dc465830 (diff)
downloadhurrycurry-b53f3d198e5899a597e5a321a277cf0ef74fec7b.tar
hurrycurry-b53f3d198e5899a597e5a321a277cf0ef74fec7b.tar.bz2
hurrycurry-b53f3d198e5899a597e5a321a277cf0ef74fec7b.tar.zst
Add hover sound effect
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])