Skip to content

Commit 8c40f1a

Browse files
authored
Fix a CodeEdit method name clash (#583)
1 parent ba22d0d commit 8c40f1a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

addons/dialogue_manager/components/code_edit.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func insert_bbcode(open_tag: String, close_tag: String = "") -> void:
276276

277277
# Insert text at current caret position
278278
# Move Caret down 1 line if not => END
279-
func insert_text(text: String) -> void:
279+
func insert_text_at_cursor(text: String) -> void:
280280
if text != "=> END":
281281
insert_text_at_caret(text+"\n")
282282
set_caret_line(get_caret_line()+1)

addons/dialogue_manager/views/main_view.gd

+7-7
Original file line numberDiff line numberDiff line change
@@ -846,19 +846,19 @@ func _on_insert_button_menu_id_pressed(id: int) -> void:
846846
5:
847847
code_edit.insert_bbcode("[next=auto]")
848848
6:
849-
code_edit.insert_text("~ title")
849+
code_edit.insert_text_at_cursor("~ title")
850850
7:
851-
code_edit.insert_text("Nathan: This is Some Dialogue")
851+
code_edit.insert_text_at_cursor("Nathan: This is Some Dialogue")
852852
8:
853-
code_edit.insert_text("Nathan: Choose a Response...\n- Option 1\n\tNathan: You chose option 1\n- Option 2\n\tNathan: You chose option 2")
853+
code_edit.insert_text_at_cursor("Nathan: Choose a Response...\n- Option 1\n\tNathan: You chose option 1\n- Option 2\n\tNathan: You chose option 2")
854854
9:
855-
code_edit.insert_text("% Nathan: This is random line 1.\n% Nathan: This is random line 2.\n%1 Nathan: This is weighted random line 3.")
855+
code_edit.insert_text_at_cursor("% Nathan: This is random line 1.\n% Nathan: This is random line 2.\n%1 Nathan: This is weighted random line 3.")
856856
10:
857-
code_edit.insert_text("Nathan: [[Hi|Hello|Howdy]]")
857+
code_edit.insert_text_at_cursor("Nathan: [[Hi|Hello|Howdy]]")
858858
11:
859-
code_edit.insert_text("=> title")
859+
code_edit.insert_text_at_cursor("=> title")
860860
12:
861-
code_edit.insert_text("=> END")
861+
code_edit.insert_text_at_cursor("=> END")
862862

863863

864864
func _on_translations_button_menu_id_pressed(id: int) -> void:

0 commit comments

Comments
 (0)