Basic mouse interface

This commit is contained in:
Dan 2024-05-02 13:54:43 +01:00
parent 2099f0b1ff
commit b0583bd97f
8 changed files with 177 additions and 4 deletions

View 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()