Adding more drone types

This commit is contained in:
Dan Baker 2024-05-02 19:22:34 +01:00
parent 0716fd62e8
commit cfe0fb2e5a
12 changed files with 107 additions and 12 deletions

View file

@ -1,9 +1,8 @@
extends HBoxContainer
func disable_buttons():
## Get all children buttons
var buttons = get_children()
@onready var buttons = get_children()
func disable_buttons():
## Disable all buttons
for button in buttons:
button.disabled = true
@ -11,9 +10,6 @@ func disable_buttons():
visible = false
func enable_buttons():
## Get all children buttons
var buttons = get_children()
## Enable all buttons
for button in buttons:
button.disabled = false
@ -21,9 +17,6 @@ func enable_buttons():
visible = true
func reset_button_focus():
## Get all children buttons
var buttons = get_children()
## Reset focus on all buttons
for button in buttons:
button.release_focus()