Nameplate ​
Inherits: MarginContainer
This class manages the display of entity nameplates in the game, showing health, cast bars, and status effects (buffs/debuffs). Uses the modular CastBar class for casting display.
Description ​
Key features:
- Displays entity name and dynamically created health pool bars
- Shows active buffs and debuffs
- Manages cast bar for abilities using modular CastBar component
- Updates dynamically based on entity state
- Configurable through game settings
Properties ​
PackedScene | nameplate_pool_bar_scene |
Variables ​
Node3D | nameplate_owner | |
bool | is_interactable_nameplate | false |
Array[Aura] | active_auras | |
Array[Aura] | buff_slots | |
Array[Aura] | debuff_slots | |
bool | settings_visible | true |
bool | combat_visible | true |
bool | lod_visible | true |
Array[PoolBarUI] | health_pool_bars | [] |
PartyManager | party_manager |
Methods ​
void | nameplate_setup( owner: Variant, p_party_manager: PartyManager ) |
void | set_nameplate_border_colour( state: int ) |
Signals ​
effect_tooltip_requested( effect: EffectInstance ) ​
Tooltip signals - emit upward to NameplateManager
hide_tooltip( force_hide: bool ) ​
Asks the interface to hide the tooltip (force hides it at once).
Property descriptions ​
PackedScene nameplate_pool_bar_scene ​
Scene preload for nameplate pool bars
Variable descriptions ​
Node3D nameplate_owner ​
The entity that owns the nameplate (null for interactable nameplates)
bool is_interactable_nameplate = false ​
Whether this is an interactable nameplate (simplified display)
Array[Aura] active_auras ​
Array of active auras
Array[Aura] buff_slots ​
Buff Slots array
Array[Aura] debuff_slots ​
Debuff Slots array
bool settings_visible = true ​
Settings-based visibility state
bool combat_visible = true ​
Combat-state visibility flag
bool lod_visible = true ​
LOD visibility flag
Array[PoolBarUI] health_pool_bars = [] ​
Pool bar arrays - only health bars now
PartyManager party_manager ​
SystemRefs
Method descriptions ​
void nameplate_setup( owner: Variant, p_party_manager: PartyManager ) ​
Set up the nameplate with an owner (Entity or InteractableObject) and initialize all UI elements
void set_nameplate_border_colour( state: int ) ​
Set nameplate border highlighting