aboutsummaryrefslogtreecommitdiff
path: root/client/game.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-28 20:38:56 +0200
committertpart <tpart120@proton.me>2024-09-28 20:38:56 +0200
commit5cd87fc5d570d584019a6d6dd8dc25b6e5f274a0 (patch)
treee581a7a973813ea93e230438a9718e4e675c5c5a /client/game.gd
parent40f4dddf5b8dcdc53996d981bf01d124584038df (diff)
downloadhurrycurry-5cd87fc5d570d584019a6d6dd8dc25b6e5f274a0.tar
hurrycurry-5cd87fc5d570d584019a6d6dd8dc25b6e5f274a0.tar.bz2
hurrycurry-5cd87fc5d570d584019a6d6dd8dc25b6e5f274a0.tar.zst
Refactor in_lobby code in popup message
Diffstat (limited to 'client/game.gd')
-rw-r--r--client/game.gd9
1 files changed, 3 insertions, 6 deletions
diff --git a/client/game.gd b/client/game.gd
index a34ff57e..fe1e9ba6 100644
--- a/client/game.gd
+++ b/client/game.gd
@@ -247,18 +247,15 @@ func handle_packet(p):
map.gi_bake()
await get_parent()._menu_open()
map.autobake = true
-
- if in_lobby: popup_message.lobby()
- else: popup_message.ingame()
+
+ in_lobby_updated.emit(in_lobby)
else:
map.autobake = false
await get_parent()._menu_exit()
-
+
lobby.visible = in_lobby
if lobby and join_state == JoinState.SPECTATING:
toggle_join()
-
- in_lobby_updated.emit(in_lobby)
"score":
if p.time_remaining != null:
overlay.update(p.demands_failed, p.demands_completed, p.points, p.time_remaining)