online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/barbutton/BarTextureButton.gd')
-rw-r--r--ui/barbutton/BarTextureButton.gd5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/barbutton/BarTextureButton.gd b/ui/barbutton/BarTextureButton.gd
index 6f57340..cf36bd3 100644
--- a/ui/barbutton/BarTextureButton.gd
+++ b/ui/barbutton/BarTextureButton.gd
@@ -20,7 +20,10 @@ func set_disabled(new: bool) -> void:
self_modulate = Color(.1, .1, .1, 0.5) if disabled else Color.white
-func _process(_delta := 0.0):
+func _input(_event:InputEvent):
+ _update()
+
+func _update():
if disabled:
background.color = disabled_color
elif pressed: