pollen-not-included/scenes/scripts/drone_controls.gd
2024-05-02 13:54:43 +01:00

30 lines
No EOL
541 B
GDScript

extends HBoxContainer
func disable_buttons():
## Get all children buttons
var buttons = get_children()
## Disable all buttons
for button in buttons:
button.disabled = true
visible = false
func enable_buttons():
## Get all children buttons
var buttons = get_children()
## Enable all buttons
for button in buttons:
button.disabled = false
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()