# XWUIGamePartyManager

A vertical party roster that renders each `members` entry as a card with a portrait circle, name and level, a role badge (colored per role and toggled by `showRoles`), an HP bar (toggled by `showHpBars`), and optional status text. The member matching `leaderId` gets a crown icon, and when `draggable` is enabled cards can be reordered by drag-and-drop. Use it for RPG/co-op party rosters; the public API exposes `addMember` (capped at `maxMembers`), `removeMember`, `reorder`, `setLeader`, and live `updateMemberHp`.

## Basic Usage

Instantiates the party manager with an empty member list, default role badges, HP bars, and drag-reorder enabled.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A vertical party roster with portraits, HP bars, role badges, and a leader crown.
```

## Full Raid Party

A maxed-out six-member raid group with mixed roles, status effects, and a downed member in the low-health state.

```example
file: examples/FullRaidParty.ts
html: examples/FullRaidParty.html
title: Full Raid Party
description: A full party filling all maxMembers slots with mixed roles, status effects, and a sub-25% HP member.
```

## Compact Roster

A minimal portrait-and-name list with role badges, HP bars, and drag-reorder disabled.

```example
file: examples/CompactRoster.ts
html: examples/CompactRoster.html
title: Compact Roster
description: A lobby-style roster with showRoles, showHpBars, and draggable all turned off.
```

```api
```
