the options screen is 𝔞𝔩𝔦𝔳𝔢.

This commit is contained in:
Haze Weathers 2023-03-08 04:01:48 -05:00
parent 99fd0f6473
commit 89b4bc045e
12 changed files with 327 additions and 120 deletions

View file

@ -0,0 +1,15 @@
extends HBoxContainer
export (ButtonGroup) var group
func _ready():
focus_mode = FOCUS_ALL
for child in get_children():
if child is BaseButton:
child.focus_neighbour_top = "../%s" % focus_neighbour_top
child.focus_neighbour_bottom = "../%s" % focus_neighbour_bottom
child.connect("focus_entered", child, "set_pressed", [true])
connect("focus_entered", self, "_focused")
func _focused():
group.get_pressed_button().grab_focus()