Adding more drone types
This commit is contained in:
parent
0716fd62e8
commit
cfe0fb2e5a
12 changed files with 107 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue