online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Status.gd')
| -rw-r--r-- | ui/Status.gd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/Status.gd b/ui/Status.gd index 3988d53..6a68c79 100644 --- a/ui/Status.gd +++ b/ui/Status.gd @@ -1,6 +1,9 @@ extends Label +class_name StatusLabel -func text(newtext) -> void: - show() +func set_text(newtext: String, time := 7) -> void: + print("set to ", newtext) text = newtext + yield(get_tree().create_timer(time), "timeout") + text = "" |