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