SusHudPlayerStatus

Player identity block — avatar, name, HP / MP / XP progress rows.
Package
SusGame · HUD (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
PlayerName | Prop<string> | "Player" | |
AvatarImage | Prop<string> | "" | |
AvatarText | Prop<string> | "P" | |
Hp | Prop<float> | 100f | |
HpMax | Prop<float> | 100f | |
Mp | Prop<float> | 100f | |
MpMax | Prop<float> | 100f | |
Xp | Prop<float> | 0f | |
XpMax | Prop<float> | 100f | |
ShowMp | Prop<bool> | true | |
ShowXp | Prop<bool> | true |
Slots
No slots.
Events
No public events.
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-hud-player-statussus-hud-player-status__avatarsus-hud-player-status__barsus-hud-player-status__bar-labelsus-hud-player-status__barssus-hud-player-status__namesus-hud-player-status__row
Usage
csharp
var status = new SusHudPlayerStatus();
status.PlayerName.Value = "Hero";
status.AvatarText.Value = "H";
status.AvatarImage.Value = "";
status.Hp.Value = 72f;
status.HpMax.Value = 100f;
status.Mp.Value = 40f;
status.MpMax.Value = 100f;
status.Xp.Value = 55f;
status.XpMax.Value = 100f;
status.ShowMp.Value = true;
status.ShowXp.Value = true;xml
<template>
<sus:SusHudPlayerStatus :PlayerName="Name.Value"
:AvatarImage="AvatarImg.Value"
:AvatarText="AvatarTxt.Value"
:Hp="Hp.Value"
:HpMax="HpMax.Value"
:Mp="Mp.Value"
:MpMax="MpMax.Value"
:Xp="Xp.Value"
:XpMax="XpMax.Value"
:ShowMp="ShowMp.Value"
:ShowXp="ShowXp.Value" />
</template>
<script>
public Prop<string> Name = new("Hero");
public Prop<string> AvatarImg = new("");
public Prop<string> AvatarTxt = new("H");
public Prop<float> Hp = new(72f);
public Prop<float> HpMax = new(100f);
public Prop<float> Mp = new(40f);
public Prop<float> MpMax = new(100f);
public Prop<float> Xp = new(55f);
public Prop<float> XpMax = new(100f);
public Prop<bool> ShowMp = new(true);
public Prop<bool> ShowXp = new(true);
</script>| Prop | Role |
|---|---|
PlayerName | Name label |
AvatarImage | Image URL / resource for SusAvatar |
AvatarText | Fallback glyph; empty → uses PlayerName |
Hp / HpMax | Health bar |
Mp / MpMax | Mana bar (hidden if ShowMp false) |
Xp / XpMax | XP bar (hidden if ShowXp false) |
ShowMp · ShowXp | Toggle MP / XP rows |
Notes
- Bars clamp to
[0, Max]withMax ≥ 1. - Built on kit
SusAvatar+SusProgressLinear— theme tokens cascade from SusKit. - For world-tracked unit plates use SusUnitNameplate, not this HUD block.