parent
7bb523f9e7
commit
e51e0a24d2
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,18 @@
|
|||||||
extends Node
|
extends Node
|
||||||
class_name DialogicStarter
|
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):
|
func open(timeline: String):
|
||||||
Dialogic.start(timeline)
|
Dialogic.start(timeline)
|
||||||
|
|
||||||
|
func _start_dialog() -> void:
|
||||||
|
timelineStarted.emit()
|
||||||
|
|
||||||
|
func _on_timeline_ended() -> void:
|
||||||
|
timelineEnded.emit()
|
||||||
|
|||||||
Loading…
Reference in new issue