aboutsummaryrefslogtreecommitdiff
path: root/client/menu/controller_buttons/controller_button.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-07 19:22:14 +0200
committertpart <tpart120@proton.me>2024-07-07 19:22:14 +0200
commit4cbe2e4adc463aae59b3875a35f8b2cddb92dce0 (patch)
treeac7f70f0a75216fbc21afbf3b63bc44d72fe2c41 /client/menu/controller_buttons/controller_button.gd
parent9bc74b3a9e2fef5f9ab278e4d0c4c9c1cc5b1f12 (diff)
downloadhurrycurry-4cbe2e4adc463aae59b3875a35f8b2cddb92dce0.tar
hurrycurry-4cbe2e4adc463aae59b3875a35f8b2cddb92dce0.tar.bz2
hurrycurry-4cbe2e4adc463aae59b3875a35f8b2cddb92dce0.tar.zst
Fix button pressable despite being disabled
Diffstat (limited to 'client/menu/controller_buttons/controller_button.gd')
-rw-r--r--client/menu/controller_buttons/controller_button.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/menu/controller_buttons/controller_button.gd b/client/menu/controller_buttons/controller_button.gd
index 4fa70b5a..83cfc180 100644
--- a/client/menu/controller_buttons/controller_button.gd
+++ b/client/menu/controller_buttons/controller_button.gd
@@ -29,6 +29,8 @@ func _input(event):
return
if not is_visible_in_tree():
return
+ if disabled:
+ return
if Input.is_action_just_pressed(press_action):
pressed.emit()