diff options
author | nokoe <nokoe@mailbox.org> | 2024-09-28 12:00:48 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-09-28 12:02:43 +0200 |
commit | 04ddfc807a0e275d69e82222c7a7fcb39c979e02 (patch) | |
tree | adbe8ce929bc2fb81914b8b90be4115ddfcef8cc /client/menu/communicate/popup_message | |
parent | 045e34f78a498230f39101ce215424fcdcec9eb0 (diff) | |
download | hurrycurry-04ddfc807a0e275d69e82222c7a7fcb39c979e02.tar hurrycurry-04ddfc807a0e275d69e82222c7a7fcb39c979e02.tar.bz2 hurrycurry-04ddfc807a0e275d69e82222c7a7fcb39c979e02.tar.zst |
replace `is_joined` and `join_sent` with `join_state`
Diffstat (limited to 'client/menu/communicate/popup_message')
-rw-r--r-- | client/menu/communicate/popup_message/popup_message.gd | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/client/menu/communicate/popup_message/popup_message.gd b/client/menu/communicate/popup_message/popup_message.gd index 6c2c2c0e..513d3840 100644 --- a/client/menu/communicate/popup_message/popup_message.gd +++ b/client/menu/communicate/popup_message/popup_message.gd @@ -44,15 +44,8 @@ var server_message_position := Vector2.ZERO var last_server_message_panel_size := Vector2.ZERO func _ready(): - game.joined.connect( - func player_joined(): - is_joined = true - update_state() - ) - game.left.connect( - func player_joined(): - is_joined = false - update_state() + game.join_state_updated.connect(func(state: Game.JoinState): + is_joined = state == Game.JoinState.JOINED ) game.update_tutorial_running.connect( func a(running: bool): |