Basic mouse interface
This commit is contained in:
parent
2099f0b1ff
commit
b0583bd97f
8 changed files with 177 additions and 4 deletions
30
scenes/scripts/drone_controls.gd
Normal file
30
scenes/scripts/drone_controls.gd
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue