online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/TimerLabels.gd')
-rw-r--r--ui/TimerLabels.gd8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/TimerLabels.gd b/ui/TimerLabels.gd
index 764c827..75cba88 100644
--- a/ui/TimerLabels.gd
+++ b/ui/TimerLabels.gd
@@ -8,7 +8,7 @@ export(bool) var white := false
onready var colorrect := $ColorRect
-func set_time(newtime):
+func set_time(newtime) -> bool:
if stop:
return false
time = newtime
@@ -22,7 +22,7 @@ func set_time(newtime):
return true
-func _ready():
+func _ready() -> void:
_on_turn_over()
colorrect.show_behind_parent = true
colorrect.color = Globals.grid.overlay_color
@@ -30,9 +30,9 @@ func _ready():
Events.connect("game_over", self, "_on_game_over")
-func _on_game_over():
+func _on_game_over() -> void:
stop = true
-func _on_turn_over():
+func _on_turn_over() -> void:
colorrect.visible = Globals.turn == white