diff options
author | htmlJoel <ajmach6@gmail.com> | 2023-03-01 20:34:07 +0100 |
---|---|---|
committer | Joel Machens <ajmach6@gmail.com> | 2023-03-12 05:46:24 +0100 |
commit | 3573d59ef42c935dc27bb6a4ae9bb3c4ba041c08 (patch) | |
tree | fba91cccf66ddd07e518cb4fb9cb0ab89fed9fb4 /game/src/OptionMenu/GeneralTab.gd | |
parent | dfd6d33a9bd1fda56589efa66a9ca0f63f5e46f8 (diff) |
Added General Tab
Fix OptionsMenu scaling
Options UI extended
Connected escape for back
Diffstat (limited to 'game/src/OptionMenu/GeneralTab.gd')
-rw-r--r-- | game/src/OptionMenu/GeneralTab.gd | 8 |
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() |