Skip to content

EffectPropertiesBase ​

Inherits: Control

Inherited by: CompositeEffectProperties

Base class for all effect property UI panels Handles common functionality and provides interface for specific effect properties

Variables ​

Effectcurrent_effect
boolis_loadingfalse

Methods ​

voidload_effect_properties( effect: Effect )
voidapply_theme()
Array[String]validate_properties()
voidconnect_property_signal( control: Control, signal_name: String, callback: Callable )
voidapply_theme_to_button( button: Button )
voidapply_theme_to_line_edit( line_edit: LineEdit )
voidapply_theme_to_spin_box( spin_box: SpinBox )
voidapply_theme_to_option_button( option_button: OptionButton )
voidapply_theme_to_check_box( check_box: CheckBox )
voidapply_theme_to_text_edit( text_edit: TextEdit )
voidsetup_float_spin_box( spin_box: SpinBox, min_val: float = 0.0, max_val: float = 999.0, step: float = 0.1, value: float = 0.0 )
voidsetup_int_spin_box( spin_box: SpinBox, min_val: int = 0, max_val: int = 999, step: int = 1, value: int = 0 )
voidsetup_option_button( option_button: OptionButton, items: Array[String], selected_index: int = 0 )
Buttoncreate_resource_selection_button( current_resource: Resource, resource_type: String, callback: Callable )

Signals ​

property_changed() ​

Variable descriptions ​

Effect current_effect ​

No description yet.

bool is_loading = false ​

No description yet.

Method descriptions ​

void load_effect_properties( effect: Effect ) ​

Override this to load effect-specific properties into UI

void apply_theme() ​

Override this to apply theme to UI components

Array[String] validate_properties() ​

Override this to validate current property values

void connect_property_signal( control: Control, signal_name: String, callback: Callable ) ​

Setup a common signal connection with change tracking

void apply_theme_to_button( button: Button ) ​

Apply theme to a button

void apply_theme_to_line_edit( line_edit: LineEdit ) ​

Apply theme to a line edit

void apply_theme_to_spin_box( spin_box: SpinBox ) ​

Apply theme to a spin box

void apply_theme_to_option_button( option_button: OptionButton ) ​

Apply theme to an option button

void apply_theme_to_check_box( check_box: CheckBox ) ​

Apply theme to a check box

void apply_theme_to_text_edit( text_edit: TextEdit ) ​

Apply theme to a text edit

void setup_float_spin_box( spin_box: SpinBox, min_val: float = 0.0, max_val: float = 999.0, step: float = 0.1, value: float = 0.0 ) ​

Setup a float spin box with common properties

void setup_int_spin_box( spin_box: SpinBox, min_val: int = 0, max_val: int = 999, step: int = 1, value: int = 0 ) ​

Setup an integer spin box with common properties

void setup_option_button( option_button: OptionButton, items: Array[String], selected_index: int = 0 ) ​

Setup an option button with items

Button create_resource_selection_button( current_resource: Resource, resource_type: String, callback: Callable ) ​

Create a resource selection button for specific resource types