HUD
The HUD (heads-up display) is a built-in GUI component that shows the player’s level, HP, and SP. It can optionally display a faceset portrait usingDOMSprite.
Basic Usage
Register the HUD in your client module and auto-display it when the current player is ready:Faceset (Optional)
The HUD can render a face portrait from a faceset spritesheet. The faceset data is provided in the GUI data, and the portrait is only displayed whenfaceset
is defined.
1) Provide a faceset spritesheet
2) Pass faceset data to the HUD
- If
faceset.expressionis missing, the HUD uses"default". - If
facesetis not provided, no portrait area is rendered.