File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -660,7 +660,8 @@ func event_handler(event: Dictionary):
660
660
661
661
current_event = event
662
662
663
- if record_history :
663
+ # Text and questions text isn't finalized at this point
664
+ if record_history and event ['event_id' ] != 'dialogic_001' and event ['event_id' ] != 'dialogic_010' :
664
665
HistoryTimeline .add_history_row_event (current_event )
665
666
666
667
match event ['event_id' ]:
@@ -682,7 +683,12 @@ func event_handler(event: Dictionary):
682
683
683
684
# voice
684
685
handle_voice (event )
685
- update_text (event ['text' ])
686
+ var finalText = update_text (event ['text' ])
687
+
688
+ # This handles specific text elements
689
+ if record_history :
690
+ current_event ['text' ] = finalText
691
+ HistoryTimeline .add_history_row_event (current_event )
686
692
# Character event
687
693
'dialogic_002' :
688
694
## PLEASE UPDATE THIS! BUT HOW?
@@ -801,7 +807,12 @@ func event_handler(event: Dictionary):
801
807
update_name (character_data )
802
808
# voice
803
809
handle_voice (event )
804
- update_text (event ['question' ])
810
+ var finalText = update_text (event ['question' ])
811
+
812
+ # This handles specific text elements
813
+ if record_history :
814
+ current_event ['question' ] = finalText
815
+ HistoryTimeline .add_history_row_event (current_event )
805
816
# Choice event
806
817
'dialogic_011' :
807
818
emit_signal ("event_start" , "choice" , event )
You can’t perform that action at this time.
0 commit comments