mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-03 17:41:15 +00:00
Updated dialogic
This commit is contained in:
parent
1d11462073
commit
cbb82512ee
483 changed files with 5743 additions and 2177 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue