Skip to content

Commit 73a68ed

Browse files
authored
Merge pull request #69 from Crystalwarrior/fix-append-resize-text
Fix resizing screen removing appended text.
2 parents 2a6a851 + e4e2dbc commit 73a68ed

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)