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 ​
String | selection_class_type | "" |
String | context_effect_type | "" # Used to filter VFX types for specific effect types |
bool | lock_to_single_category | false # Controls whether to restrict to one VFX category |
Variables ​
Button | remove_vfx_button | |
OptionButton | theme_filter | |
OptionButton | category_filter | |
VFXSelectionOneShotProperties | oneshot_properties | |
VFXSelectionLoopProperties | loop_properties | |
VFXSelectionEnchantProperties | enchant_properties | |
VFXSelectionMaterialProperties | material_properties | |
VFXSelectionBeamProperties | beam_properties | |
VFXSelectionTelegraphProperties | telegraph_properties | |
VFXSelectionPathProperties | path_properties | |
VFXSelectionTransformationProperties | transformation_properties | |
VFXSelectionPropertyPanel | current_property_panel | |
VFXSelection | current_selection | |
bool | is_loading | false |
String | force_vfx_type | "" # When set, locks the VFX type dropdown |
bool | is_type_locked | false # Whether the type dropdown is disabled |
String | suggested_vfx_category | "" # Suggested category (used when lock_to_single_catego... |
Methods ​
void | edit_vfx_selection( selection: VFXSelection, class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false ) |
void | create_new_vfx_selection( class_type: String, effect_type: String = "", forced_type: String = "", lock_category: bool = false, suggested_category: String = "" ) |
void | reset_to_defaults() |
bool | is_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