ActiveEffectsDisplayUI ​
Inherits: MarginContainer
Active Effects Display UI - Shows all active effects on the current player Gets initial data from GameHost.party_manager.current_player, then uses effects component signals for updates Uses color coding: Green for buffs, Red for debuffs, Grey/White for neutral effects No stored references needed - connects once to signals at setup Refactored to emit effect tooltip signals
Variables ​
Array[Control] | effect_ui_components | [] |
Dictionary | effect_ui_lookup | {} |
Methods ​
void | initialize_display( current_player: Player ) |
void | populate_effects_display( effects_component: EffectsComponent ) |
void | clear_effect_components() |
void | clear_effects_display() |
Signals ​
effect_tooltip_requested( effect: EffectInstance ) ​
Signals for effect tooltips
hide_tooltip( force_hide: bool ) ​
Asks the interface to hide the tooltip (force hides it at once).
Constants ​
ColorCOLOR_BUFF =Color.GREEN- Effect type colorsColorCOLOR_DEBUFF =Color.RED- The color of the effects that harm.ColorCOLOR_NEUTRAL =Color.WHITE- The color of the effects that are neither good nor bad.
Variable descriptions ​
Array[Control] effect_ui_components = [] ​
Arrays to keep track of created effect UI components
Dictionary effect_ui_lookup = ​
effect_instance -> UI component
Method descriptions ​
void initialize_display( current_player: Player ) ​
Initialize the effects display with current player data
void populate_effects_display( effects_component: EffectsComponent ) ​
Populate the effects display with current active effects
void clear_effect_components() ​
Clear all effect UI components
void clear_effects_display() ​
Clear the effects display when no character is available