Skip to content

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 ​

boolis_editingfalse
Stringoriginal_key""
intcurrent_typeTYPE_STRING
Stringvalidation_context"global" # "global" or "local"
Dictionaryexisting_variables{} # Current variables for duplicate checking
LocalVariableslocal_variables_instancenull # For local variable validation
Varianttype_options[ ... ]

Methods ​

voidsetup_ui()
voidsetup_for_global_variables()
voidsetup_for_local_variables( event: Event )
voidshow_for_new_variable( default_key: String = "", default_value: Variant = "" )
voidshow_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.