Skip to content

Commit e4e2dbc

Browse files
Fix resizing screen removing appended text.
This was encountered with text events that have "continue previous text" enabled.
1 parent 2a6a851 commit e4e2dbc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addons/textalog/nodes/dialogue_base_node/dialog_node/dialog_node.gd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func set_text(text:String) -> void:
7373
## Adds text to the current one at the end. No need to call
7474
## [method display_text] if the node is already displaying text
7575
func add_text(text:String) -> void:
76-
text_node.append_bbcode(text)
76+
text_node.bbcode_text = text_node.bbcode_text + text
7777

7878

7979
## Returns the used text_node
@@ -461,7 +461,6 @@ func _notification(what:int) -> void:
461461
func _init() -> void:
462462
_text_timer = Timer.new()
463463
_text_timer.connect("timeout", self, "_update_displayed_text")
464-
_text_timer.one_shot = true
465464
add_child(_text_timer)
466465

467466
text_node = RichTextLabel.new()

0 commit comments

Comments
 (0)