Skip to content

VFXSelectionDialog ​

Inherits: ConfirmationDialog

Modular VFX selection dialog that works with any VFXSelection class type Uses property panels for detailed configuration and DatabaseVFX for VFX data access Now supports context-specific type locking and uses ItemList for VFX name selection

Properties ​

Stringselection_class_type""
Stringcontext_effect_type"" # Used to filter VFX types for specific effect types
boollock_to_single_categoryfalse # Controls whether to restrict to one VFX category

Variables ​

Buttonremove_vfx_button
OptionButtontheme_filter
OptionButtoncategory_filter
VFXSelectionOneShotPropertiesoneshot_properties
VFXSelectionLoopPropertiesloop_properties
VFXSelectionEnchantPropertiesenchant_properties
VFXSelectionMaterialPropertiesmaterial_properties
VFXSelectionBeamPropertiesbeam_properties
VFXSelectionTelegraphPropertiestelegraph_properties
VFXSelectionPathPropertiespath_properties
VFXSelectionTransformationPropertiestransformation_properties
VFXSelectionPropertyPanelcurrent_property_panel
VFXSelectioncurrent_selection
boolis_loadingfalse
Stringforce_vfx_type"" # When set, locks the VFX type dropdown
boolis_type_lockedfalse # Whether the type dropdown is disabled
Stringsuggested_vfx_category"" # Suggested category (used when lock_to_single_catego...

Methods ​

voidedit_vfx_selection( selection: VFXSelection, class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false )
voidcreate_new_vfx_selection( class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false, suggested_category: String = "" )
voidreset_to_defaults()
boolis_configuration_valid()

Signals ​

selection_made( selection: VFXSelection ) ​

Property descriptions ​

String selection_class_type = "" ​

No description yet.

String context_effect_type = "" # Used to filter VFX types for specific effect types ​

No description yet.

bool lock_to_single_category = false # Controls whether to restrict to one VFX category ​

No description yet.

Variable descriptions ​

Button remove_vfx_button ​

No description yet.

OptionButton theme_filter ​

The Theme and Category drop-downs above the list of names (read from the names of the library).

OptionButton category_filter ​

No description yet.

VFXSelectionOneShotProperties oneshot_properties ​

No description yet.

VFXSelectionLoopProperties loop_properties ​

No description yet.

VFXSelectionEnchantProperties enchant_properties ​

No description yet.

VFXSelectionMaterialProperties material_properties ​

No description yet.

VFXSelectionBeamProperties beam_properties ​

No description yet.

VFXSelectionTelegraphProperties telegraph_properties ​

No description yet.

VFXSelectionPathProperties path_properties ​

No description yet.

VFXSelectionTransformationProperties transformation_properties ​

No description yet.

VFXSelectionPropertyPanel current_property_panel ​

No description yet.

VFXSelection current_selection ​

No description yet.

bool is_loading = false ​

No description yet.

String force_vfx_type = "" # When set, locks the VFX type dropdown ​

No description yet.

bool is_type_locked = false # Whether the type dropdown is disabled ​

No description yet.

String suggested_vfx_category = "" # Suggested category (used when lock_to_single_category ​

No description yet.

Method descriptions ​

void edit_vfx_selection( selection: VFXSelection, class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false ) ​

Configure and show dialog for editing a specific VFX selection lock_category parameter controls whether to restrict to one VFX category

void create_new_vfx_selection( class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false, suggested_category: String = "" ) ​

Create a new VFX selection with optional type forcing and category restriction

void reset_to_defaults() ​

Reset current property panel to defaults

bool is_configuration_valid() ​

Check if current configuration is valid