@@ -6,6 +6,7 @@ extends Control
66## -----------------------------------------------------------------------------
77## The timeline to load when starting the scene
88var timeline : String
9+ var timeline_name : String
910
1011## # MODE
1112var preview : bool = false
@@ -398,6 +399,7 @@ func play_audio(name):
398399## -----------------------------------------------------------------------------
399400# load a timeline file and start parsing
400401func set_current_dialog (dialog_path : String ):
402+ print (dialog_path )
401403 current_timeline = dialog_path
402404 dialog_script = DialogicResources .get_timeline_json (dialog_path )
403405 return load_dialog ()
@@ -545,8 +547,8 @@ func on_timeline_start():
545547 # save to the default slot
546548 Dialogic .save ('' , true )
547549 # TODO remove event_start in 2.0
548- emit_signal ("event_start" , "timeline" , current_timeline )
549- emit_signal ("timeline_start" , current_timeline )
550+ emit_signal ("event_start" , "timeline" , timeline_name )
551+ emit_signal ("timeline_start" , timeline_name )
550552
551553# emits timeline_end and handles autosaving
552554func on_timeline_end ():
@@ -556,7 +558,7 @@ func on_timeline_end():
556558 Dialogic .save ('' , true )
557559 # TODO remove event_end in 2.0
558560 emit_signal ("event_end" , "timeline" )
559- emit_signal ("timeline_end" , current_timeline )
561+ emit_signal ("timeline_end" , timeline_name )
560562
561563# does checks and calls the above functions
562564func _emit_timeline_signals ():
0 commit comments