Updated dialogic

This commit is contained in:
MaddoScientisto 2026-01-05 16:00:41 +01:00
commit cbb82512ee
483 changed files with 5743 additions and 2177 deletions

View file

@ -3,7 +3,11 @@ extends DialogicVisualEditorField
## Event block field for constant options. For varying options use ComplexPicker.
var options: Array = []
var options: Array = []:
set(o):
options = o
if current_value != -1:
set_value(current_value)
## if true, only the symbol will be displayed. In the dropdown text will be visible.
## Useful for making UI simpler
@ -21,6 +25,7 @@ func _ready() -> void:
call("get_popup").index_pressed.connect(index_pressed)
func _load_display_info(info:Dictionary) -> void:
options = info.get('options', [])
self.disabled = info.get('disabled', false)
@ -35,7 +40,7 @@ func _set_value(value:Variant) -> void:
if !symbol_only:
self.text = option['label']
self.icon = option.get('icon', null)
current_value = value
current_value = value
func get_value() -> Variant: