online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/menus/account/InfoLabel.gd')
| -rw-r--r-- | ui/menus/account/InfoLabel.gd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/menus/account/InfoLabel.gd b/ui/menus/account/InfoLabel.gd new file mode 100644 index 0000000..660040c --- /dev/null +++ b/ui/menus/account/InfoLabel.gd @@ -0,0 +1,11 @@ +extends Label +class_name InfoLabel + + +func set_text(new_text: String, time := 5) -> void: + show() + text = new_text + if time != 0: + yield(get_tree().create_timer(time), "timeout") + text = "" + hide() |