First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user