Improve 3+ lobby ready UX with explicit self/others status

This commit is contained in:
Shard
2026-03-27 01:23:22 +00:00
parent d7aa61a9ad
commit a84313e08d
2 changed files with 17 additions and 7 deletions
@@ -214,11 +214,13 @@ func _rebuild_additional_players_panel(lobby: Dictionary, max_players: int) -> v
else:
for i2: int in addl.size():
var entry : Dictionary = addl[i2] as Dictionary
var aid : String = str(entry.get("accountId", ""))
var aname : String = str(entry.get("displayName", str(entry.get("accountId", "Player")).substr(0, 8)))
var ready : bool = bool(entry.get("isReady", false))
var seat_n2 : int = i2 + 2
var tsuf2 : String = _team_label(gm, seat_n2, tc)
var row := _make_player_slot_row("Player: %s%s" % [aname, tsuf2], ready)
var who := "You" if aid == Auth.user_id else aname
var row := _make_player_slot_row("Player: %s%s" % [who, tsuf2], ready)
additional_players_container.add_child(row)
additional_players_container.visible = true
@@ -255,7 +257,10 @@ func _update_ready_indicators(host_ready: bool, guest_ready: bool) -> void:
# Update ready button text
if CustomLobby.i_am_ready:
ready_btn.text = "✗ Unready"
if CustomLobby.is_additional and not CustomLobby.partner_ready:
ready_btn.text = "✗ Unready (Waiting for others)"
else:
ready_btn.text = "✗ Unready"
change_deck_btn.disabled = true
else:
ready_btn.text = "✓ Ready"