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 ​
bool | show_interrupt_colors | false |
bool | show_ability_name | true |
bool | show_timer_text | true |
bool | show_tick_markers | true |
int | update_frequency | 60 |
ProgressBar | progress_bar | |
Label | ability_label | |
Label | timer_label | |
Control | tick_marker_container |
Variables ​
bool | settings_enabled | false |
String | settings_visibility_key | "" |
Entity | monitored_entity | null |
AbilityInstance | current_ability | null |
Timer | cast_timer | null |
Timer | update_timer | null |
bool | is_casting | false |
Methods ​
void | initialize_ui( setting_key: String = "" ) |
void | connect_to_entity( entity: Entity ) |
void | disconnect_from_entity() |
void | set_interrupt_colors_enabled( enabled: bool ) |
void | set_ability_name_visible( visible_state: bool ) |
void | set_timer_text_visible( visible_state: bool ) |
void | set_tick_markers_visible( visible_state: bool ) |
void | set_update_frequency( frequency: int ) |
bool | is_currently_casting() |
float | get_cast_progress() |
float | get_time_remaining() |
AbilityInstance | get_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