VariablePopup ​
Inherits: Window
A window that makes or edits a variable: its name, its type and its value. Used for the global variables and the variables of events. selection_made gives the new variable and variable_updated the edited one.
Variables ​
bool | is_editing | false |
String | original_key | "" |
int | current_type | TYPE_STRING |
String | validation_context | "global" # "global" or "local" |
Dictionary | existing_variables | {} # Current variables for duplicate checking |
LocalVariables | local_variables_instance | null # For local variable validation |
Variant | type_options | [ ... ] |
Methods ​
void | setup_ui() |
void | setup_for_global_variables() |
void | setup_for_local_variables( event: Event ) |
void | show_for_new_variable( default_key: String = "", default_value: Variant = "" ) |
void | show_for_edit_variable( key: String, value: Variant ) |
Signals ​
selection_made( key: String, value: Variant ) ​
variable_updated( key: String, value: Variant ) ​
Variable descriptions ​
bool is_editing = false ​
No description yet.
String original_key = "" ​
No description yet.
int current_type = TYPE_STRING ​
No description yet.
String validation_context = "global" # "global" or "local" ​
No description yet.
Dictionary existing_variables = # Current variables for duplicate checking ​
No description yet.
LocalVariables local_variables_instance = null # For local variable validation ​
No description yet.
type_options ​
No description yet.
Method descriptions ​
void setup_ui() ​
No description yet.
void setup_for_global_variables() ​
Setup for global variables editing
void setup_for_local_variables( event: Event ) ​
Setup for local variables editing
void show_for_new_variable( default_key: String = "", default_value: Variant = "" ) ​
No description yet.
void show_for_edit_variable( key: String, value: Variant ) ​
No description yet.