aboutsummaryrefslogtreecommitdiff
path: root/game/src/OptionMenu/GeneralTab.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-03-12 06:26:55 +0100
committer GitHub <noreply@github.com>2023-03-12 06:26:55 +0100
commit56aec8a72b96a7d9ae8fa7974cf1eb7560ab4c02 (patch)
treefba91cccf66ddd07e518cb4fb9cb0ab89fed9fb4 /game/src/OptionMenu/GeneralTab.gd
parentdfd6d33a9bd1fda56589efa66a9ca0f63f5e46f8 (diff)
parent3573d59ef42c935dc27bb6a4ae9bb3c4ba041c08 (diff)
Merge pull request #54 from BrickPi/settings-menu-upgrade
Diffstat (limited to 'game/src/OptionMenu/GeneralTab.gd')
-rw-r--r--game/src/OptionMenu/GeneralTab.gd8
1 files changed, 8 insertions, 0 deletions
diff --git a/game/src/OptionMenu/GeneralTab.gd b/game/src/OptionMenu/GeneralTab.gd
new file mode 100644
index 0000000..8aed783
--- /dev/null
+++ b/game/src/OptionMenu/GeneralTab.gd
@@ -0,0 +1,8 @@
+extends HBoxContainer
+
+@export var initial_focus: Button
+
+func _notification(what : int) -> void:
+ match(what):
+ NOTIFICATION_VISIBILITY_CHANGED:
+ if visible: initial_focus.grab_focus()