Skip to content

UseStrategyDynamicPanel ​

Inherits: VBoxContainer

Dynamic property panel for UseStrategy editing. Discovers all UseStrategyDefinition subclass scripts in the use_strategy folder, lets the user pick one via dropdown, then auto-generates property controls from the selected class's exported properties using reflection.

Description ​

Special property handling: casting_animation / on_cast_animation → AnimationSelectionAbility dialog casting_sfx / on_cast_sfx → SFX dialog (typed subclass) voice_cast_sfx → EntityVoiceSFXSelection dialog casting_vfx / cast_vfx / ability_telegraph → VFX dialog toggle_group → OptionButton from Database toggle groups drain_pool_id → pool DatabaseResourceButton active_icon → FileDialog (Texture2D) has_resource_drain → CheckBox that shows/hides the pool sub-section

Variables ​

ActiveAbilityDefinitioncurrent_ability
DialogManagerdialog_manager
boolis_loadingfalse

Methods ​

voidsetup( p_dialog_manager: DialogManager )
voidload_ability( ability: ActiveAbilityDefinition )

Signals ​

strategy_modified() ​

Variable descriptions ​

ActiveAbilityDefinition current_ability ​

No description yet.

DialogManager dialog_manager ​

No description yet.

bool is_loading = false ​

No description yet.

Method descriptions ​

void setup( p_dialog_manager: DialogManager ) ​

No description yet.

void load_ability( ability: ActiveAbilityDefinition ) ​

No description yet.