online multiplayer chess game (note server currently down)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
extends Label
class_name StatusLabel
func set_text(newtext: String, time := 7) -> void:
__set_text(newtext)
if time != 0 && newtext != "":
yield(get_tree().create_timer(time), "timeout")
__set_text("")
func clear_text():
__set_text("")
func __set_text(_text: String = ""):
text = _text
visible = text != ""
|