Skip to content

CastBar ​

Inherits: Control

Modular cast bar component that can be used by ActionBarUI, Nameplate, or any UI Automatically connects to entity casting signals and manages its own display state

Properties ​

boolshow_interrupt_colorsfalse
boolshow_ability_nametrue
boolshow_timer_texttrue
boolshow_tick_markerstrue
intupdate_frequency60
ProgressBarprogress_bar
Labelability_label
Labeltimer_label
Controltick_marker_container

Variables ​

boolsettings_enabledfalse
Stringsettings_visibility_key""
Entitymonitored_entitynull
AbilityInstancecurrent_abilitynull
Timercast_timernull
Timerupdate_timernull
boolis_castingfalse

Methods ​

voidinitialize_ui( setting_key: String = "" )
voidconnect_to_entity( entity: Entity )
voiddisconnect_from_entity()
voidset_interrupt_colors_enabled( enabled: bool )
voidset_ability_name_visible( visible_state: bool )
voidset_timer_text_visible( visible_state: bool )
voidset_tick_markers_visible( visible_state: bool )
voidset_update_frequency( frequency: int )
boolis_currently_casting()
floatget_cast_progress()
floatget_time_remaining()
AbilityInstanceget_current_ability()

Property descriptions ​

bool show_interrupt_colors = false ​

Whether to show interrupt shield color coding (for nameplates vs action bars)

bool show_ability_name = true ​

Whether to show the ability name label

bool show_timer_text = true ​

Whether to show the timer text

bool show_tick_markers = true ​

Whether to show tick markers for channeled abilities

int update_frequency = 60 ​

Update frequency in FPS (60 = smooth, 30 = good performance, 10 = basic)

ProgressBar progress_bar ​

Progress bar showing cast progress

Label ability_label ​

Label showing ability name

Label timer_label ​

Label showing time remaining

Control tick_marker_container ​

Container for tick markers (Control overlay on progress bar)

Variable descriptions ​

bool settings_enabled = false ​

Whether this cast bar respects settings (for nameplate/action bar)

String settings_visibility_key = "" ​

Settings key to check for visibility ("friendly_nameplates_cast_bar", "enemy_nameplates_cast_bar", "action_bar_cast_bar")

Entity monitored_entity = null ​

Entity being monitored for casting

AbilityInstance current_ability = null ​

Current casting ability reference

Timer cast_timer = null ​

Direct reference to the cast timer

Timer update_timer = null ​

Update timer for smooth progress

bool is_casting = false ​

Whether currently showing a cast

Method descriptions ​

void initialize_ui( setting_key: String = "" ) ​

Configure cast bar

void connect_to_entity( entity: Entity ) ​

Connect this cast bar to monitor an entity's casting

void disconnect_from_entity() ​

Disconnect from the currently monitored entity

void set_interrupt_colors_enabled( enabled: bool ) ​

Set whether to show interrupt shield colors

void set_ability_name_visible( visible_state: bool ) ​

Set whether to show ability name

void set_timer_text_visible( visible_state: bool ) ​

Set whether to show timer text

void set_tick_markers_visible( visible_state: bool ) ​

Set whether to show tick markers

void set_update_frequency( frequency: int ) ​

Set update frequency (higher = smoother, lower = better performance)

bool is_currently_casting() ​

Check if currently displaying a cast

float get_cast_progress() ​

Get current cast progress (0.0 to 1.0)

float get_time_remaining() ​

Get current cast time remaining

AbilityInstance get_current_ability() ​

Get current casting ability