the-lost-memory/project/addons/dialogic/Editor/TimelineEditor/TimelineTestingScene.gd

14 lines
461 B
GDScript3
Raw Normal View History

2022-11-17 17:52:05 +00:00
extends Node
func _ready():
var dialog = Dialogic.start(DialogicResources.get_settings_value('QuickTimelineTest', 'timeline_file', ''))
dialog.connect('dialogic_signal', self, '_on_DialogNode_dialogic_signal')
dialog.connect('timeline_end', self, '_on_DialogNode_timeline_end')
add_child(dialog)
func _on_DialogNode_dialogic_signal(argument):
print('Signal recieved. Argument: ', argument)
func _on_DialogNode_timeline_end(timeline):
get_tree().quit()