You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
381 B
19 lines
381 B
extends Node
|
|
class_name DialogicStarter
|
|
|
|
signal timelineStarted
|
|
signal timelineEnded
|
|
|
|
func _ready() -> void:
|
|
Dialogic.timeline_ended.connect(_on_timeline_ended)
|
|
Dialogic.timeline_started.connect(_start_dialog)
|
|
|
|
func open(timeline: String):
|
|
Dialogic.start(timeline)
|
|
|
|
func _start_dialog() -> void:
|
|
timelineStarted.emit()
|
|
|
|
func _on_timeline_ended() -> void:
|
|
timelineEnded.emit()
|