mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-02 13:51:17 +00:00
Dialogue System
This commit is contained in:
parent
77765a581e
commit
1fa77f0c03
690 changed files with 46698 additions and 14 deletions
|
|
@ -0,0 +1,40 @@
|
|||
@tool
|
||||
extends DialogicVisualEditorField
|
||||
|
||||
## Event block field for a single line of text.
|
||||
|
||||
|
||||
var placeholder := "":
|
||||
set(value):
|
||||
placeholder = value
|
||||
self.placeholder_text = placeholder
|
||||
|
||||
|
||||
#region MAIN METHODS
|
||||
################################################################################
|
||||
|
||||
func _ready() -> void:
|
||||
self.text_changed.connect(_on_text_changed)
|
||||
|
||||
|
||||
func _load_display_info(info:Dictionary) -> void:
|
||||
self.placeholder = info.get('placeholder', '')
|
||||
|
||||
|
||||
func _set_value(value:Variant) -> void:
|
||||
self.text = str(value)
|
||||
|
||||
|
||||
func _autofocus() -> void:
|
||||
grab_focus()
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region SIGNAL METHODS
|
||||
################################################################################
|
||||
|
||||
func _on_text_changed(value := "") -> void:
|
||||
value_changed.emit(property_name, self.text)
|
||||
|
||||
#endregion
|
||||
Loading…
Add table
Add a link
Reference in a new issue