Skip to content

UnitFrame ​

Inherits: HUDUIElement < Control

This class serves as a base for different types of unit frames in the game UI. It handles common functionality such as health and resource display, casting, and aura management for game entities.

Description ​

Key features:

  • Displays entity name, health, and resource
  • Manages cast bar functionality
  • Handles aura (buff/debuff) display and management
  • Provides signal connections for entity updates

Variables ​

Entityunitframe_owner
boolcurrently_castingfalse
Array[Aura]active_auras
Array[Aura]buff_slots
Array[Aura]debuff_slots

Methods ​

voidset_action_bar( entity: Entity )

Variable descriptions ​

Entity unitframe_owner ​

The entity that this unit frame represents

bool currently_casting = false ​

Flag to indicate if the entity is currently casting an ability

Array[Aura] active_auras ​

List of active auras (buffs/debuffs) on the entity

Array[Aura] buff_slots ​

Slots for displaying buff auras

Array[Aura] debuff_slots ​

Slots for displaying debuff auras

Method descriptions ​

void set_action_bar( entity: Entity ) ​

Sets up the unit frame for a given entity