Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
33
dialogic/custom-events/Pause/EventPart_Example.gd
Normal file
33
dialogic/custom-events/Pause/EventPart_Example.gd
Normal file
|
@ -0,0 +1,33 @@
|
|||
tool
|
||||
extends "res://addons/dialogic/Editor/Events/Parts/EventPart.gd"
|
||||
|
||||
|
||||
|
||||
|
||||
onready var input_field = $InputField
|
||||
|
||||
|
||||
func _ready():
|
||||
|
||||
input_field.connect("text_changed", self, "_on_InputField_text_changed")
|
||||
pass
|
||||
|
||||
|
||||
func load_data(data:Dictionary):
|
||||
|
||||
.load_data(data)
|
||||
|
||||
|
||||
|
||||
input_field.text = event_data["my_text_key"]
|
||||
|
||||
|
||||
func get_preview():
|
||||
return ""
|
||||
|
||||
|
||||
func _on_InputField_text_changed(text):
|
||||
event_data["my_text_key"] = text
|
||||
|
||||
|
||||
data_changed()
|
Loading…
Add table
Add a link
Reference in a new issue