online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Status.gd')
-rw-r--r--ui/Status.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/Status.gd b/ui/Status.gd
index 99c6697..03f8db1 100644
--- a/ui/Status.gd
+++ b/ui/Status.gd
@@ -3,7 +3,9 @@ class_name StatusLabel
func set_text(newtext: String, time := 7) -> void:
+ show()
text = newtext
if time != 0:
yield(get_tree().create_timer(time), "timeout")
text = ""
+ hide()