Show live player presence and Captain/Gat roster badges

This commit is contained in:
2026-09-04 19:32:22 -07:00
parent 8b67d78f25
commit fcbc617fe3
10 changed files with 162 additions and 18 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
<script>
import PlayerBadges from './PlayerBadges.svelte';
import { displayName, crewLabel } from '../lib/cards';
import CharacterSheet from './scene/CharacterSheet.svelte';
@@ -70,7 +71,7 @@
class:is-you={p.id === state.player.id}
>
<span class="bubble-icon">{iconFor(p)}</span>
<span class="bubble-name">{displayName(p)}</span>
<span class="bubble-name">{displayName(p)} <PlayerBadges player={p} {state} /></span>
<span class="bubble-meta">{statusFor(p)}</span>
</div>
{:else}
@@ -87,7 +88,7 @@
<span class="vote-status" class:done={voteStatus(p).done} title={voteStatus(p).label} aria-label={voteStatus(p).label}>{voteStatus(p).icon}</span>
{/if}
<span class="bubble-icon">{iconFor(p)}</span>
<span class="bubble-name">{crewLabel(p, captainId)}</span>
<span class="bubble-name">{crewLabel(p, captainId)} <PlayerBadges player={p} {state} /></span>
<span class="bubble-meta">{statusFor(p)}</span>
</button>
{/if}