online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/board/Game.gd')
| -rw-r--r-- | ui/board/Game.gd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/board/Game.gd b/ui/board/Game.gd index 367c044..f6d7e42 100644 --- a/ui/board/Game.gd +++ b/ui/board/Game.gd @@ -15,11 +15,14 @@ func _ready() -> void: Events.connect("game_over", self, "_game_over") if Globals.local: get_tree().call_group("freeinlocalmultiplayer", "queue_free") + get_tree().call_group("showiflocalmultiplayer", "show") func _game_over(_why: String) -> void: get_tree().call_group("showongameover", "show") get_tree().call_group("hideongameover", "hide") + if not Globals.local: + get_tree().call_group("hideongameoverifnolocalmultiplayer", "hide") func set_status(text: String, length := 5) -> void: |