@@ -155,10 +155,10 @@ func _set_node_ast(new_node_ast: ParleyNodeAst) -> void:
155155 match new_node_ast .type :
156156 ParleyDialogueSequenceAst .Type .DIALOGUE :
157157 var dialogue_node_ast : ParleyDialogueNodeAst = new_node_ast
158- _on_dialogue_node_editor_dialogue_node_changed (dialogue_node_ast .id , dialogue_node_ast .character , dialogue_node_ast .text )
158+ _on_dialogue_node_editor_dialogue_node_changed (dialogue_node_ast .id , dialogue_node_ast .character , dialogue_node_ast .text , dialogue_node_ast . text_translation_key )
159159 ParleyDialogueSequenceAst .Type .DIALOGUE_OPTION :
160160 var dialogue_option_node_ast : ParleyDialogueOptionNodeAst = new_node_ast
161- _on_dialogue_option_node_editor_dialogue_option_node_changed (dialogue_option_node_ast .id , dialogue_option_node_ast .character , dialogue_option_node_ast .text )
161+ _on_dialogue_option_node_editor_dialogue_option_node_changed (dialogue_option_node_ast .id , dialogue_option_node_ast .character , dialogue_option_node_ast .text , dialogue_option_node_ast . text_translation_key )
162162 ParleyDialogueSequenceAst .Type .CONDITION :
163163 var condition_node_ast : ParleyConditionNodeAst = new_node_ast
164164 _on_condition_node_editor_condition_node_changed (condition_node_ast .id , condition_node_ast .description , condition_node_ast .combiner , condition_node_ast .conditions )
@@ -425,7 +425,7 @@ func _on_graph_view_scroll_offset_changed(offset: Vector2) -> void:
425425
426426
427427# TODO: remove ast stuff
428- func _on_dialogue_node_editor_dialogue_node_changed (id : String , new_character : String , new_dialogue_text : String ) -> void :
428+ func _on_dialogue_node_editor_dialogue_node_changed (id : String , new_character : String , new_dialogue_text : String , new_text_translation_key : String ) -> void :
429429 if not dialogue_ast :
430430 return
431431 var _ast_node : ParleyNodeAst = dialogue_ast .find_node_by_id (id )
@@ -434,7 +434,7 @@ func _on_dialogue_node_editor_dialogue_node_changed(id: String, new_character: S
434434 return
435435 if _ast_node is ParleyDialogueNodeAst :
436436 var ast_node : ParleyDialogueNodeAst = _ast_node
437- ast_node .update (new_character , new_dialogue_text )
437+ ast_node .update (new_character , new_dialogue_text , new_text_translation_key )
438438 # TODO: move into graph view
439439 if _selected_node is ParleyDialogueNode :
440440 var selected_node : ParleyDialogueNode = _selected_node
@@ -443,7 +443,7 @@ func _on_dialogue_node_editor_dialogue_node_changed(id: String, new_character: S
443443
444444
445445# TODO: remove ast stuff
446- func _on_dialogue_option_node_editor_dialogue_option_node_changed (id : String , new_character : String , new_option_text : String ) -> void :
446+ func _on_dialogue_option_node_editor_dialogue_option_node_changed (id : String , new_character : String , new_option_text : String , new_text_translation_key : String ) -> void :
447447 if not dialogue_ast :
448448 return
449449 var _ast_node : ParleyNodeAst = dialogue_ast .find_node_by_id (id )
@@ -452,7 +452,7 @@ func _on_dialogue_option_node_editor_dialogue_option_node_changed(id: String, ne
452452 return
453453 if _ast_node is ParleyDialogueOptionNodeAst :
454454 var ast_node : ParleyDialogueOptionNodeAst = _ast_node
455- ast_node .update (new_character , new_option_text )
455+ ast_node .update (new_character , new_option_text , new_text_translation_key )
456456 # TODO: move into graph view
457457 if _selected_node is ParleyDialogueOptionNode :
458458 var selected_node : ParleyDialogueOptionNode = _selected_node
0 commit comments