From 3573d59ef42c935dc27bb6a4ae9bb3c4ba041c08 Mon Sep 17 00:00:00 2001 From: htmlJoel Date: Wed, 1 Mar 2023 13:34:07 -0600 Subject: Added General Tab Fix OptionsMenu scaling Options UI extended Connected escape for back --- game/src/OptionMenu/VideoTab.gd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 game/src/OptionMenu/VideoTab.gd (limited to 'game/src/OptionMenu/VideoTab.gd') diff --git a/game/src/OptionMenu/VideoTab.gd b/game/src/OptionMenu/VideoTab.gd new file mode 100644 index 0000000..8aed783 --- /dev/null +++ b/game/src/OptionMenu/VideoTab.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() -- cgit v1.2.3-56-ga3b1