the options screen is 𝔞𝔩𝔦𝔳𝔢.
This commit is contained in:
parent
99fd0f6473
commit
89b4bc045e
12 changed files with 327 additions and 120 deletions
15
objects/hud/selection_group.gd
Normal file
15
objects/hud/selection_group.gd
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue