pir-serious-game-ethics/addons/dialogic/Editor/Events/Question.gd
2021-04-12 10:26:50 +02:00

21 lines
404 B
GDScript

tool
extends Control
var editor_reference
var editorPopup
# This is the information of this event and it will get parsed and saved to the JSON file.
var event_data = {
'question': '',
'options': []
}
func load_data(data):
event_data = data
$PanelContainer/VBoxContainer/Header/LineEdit.text = event_data['question']
func _on_LineEdit_text_changed(new_text):
event_data['question'] = new_text