From 04ddfc807a0e275d69e82222c7a7fcb39c979e02 Mon Sep 17 00:00:00 2001 From: nokoe Date: Sat, 28 Sep 2024 12:00:48 +0200 Subject: replace `is_joined` and `join_sent` with `join_state` --- client/menu/communicate/popup_message/popup_message.gd | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'client/menu/communicate') 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): -- cgit v1.2.3-70-g09d2