SusBattleToken

Unit token on the battle grid — portrait/icon, ally/enemy, active/selected/overwatch/down states, HP/AP bars, predamage preview.
Package
SusGame · HUD (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
UnitId | Prop<string> | "" | v-model |
UnitName | Prop<string> | "" | v-model |
Rank | Prop<string> | "" | v-model |
ImageSrc | Prop<string> | "" | v-model |
Icon | Prop<string> | "" | v-model |
Ally | Prop<bool> | true | v-model |
Active | Prop<bool> | false | v-model |
Selected | Prop<bool> | false | v-model |
Overwatch | Prop<bool> | false | v-model |
Down | Prop<bool> | false | v-model |
CurrentHp | Prop<int> | 10 | v-model |
MaxHp | Prop<int> | 10 | v-model |
CurrentAp | Prop<int> | 2 | v-model |
MaxAp | Prop<int> | 2 | v-model |
Predamage | Prop<bool> | false | v-model |
PredamageMin | Prop<int> | 0 | v-model |
PredamageAccuracy | Prop<int> | 0 | v-model |
Slots
No slots.
Events
| Name | Field | Payload |
|---|---|---|
Selected | OnSelected | SusBattleToken |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-battle-tokensus-battle-token__barsus-battle-token__bodysus-battle-token__effectssus-battle-token__fallbacksus-battle-token__imgsus-battle-token__world-barsus-battle-token--activesus-battle-token--allysus-battle-token--downsus-battle-token--enemysus-battle-token--overwatchsus-battle-token--selected
Usage
xml
<sus:SusBattleToken />