Skip to content

Commit

Permalink
Fix [pause] skip bug #775 (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Feb 18, 2022
1 parent 4ec260b commit 6ef6134
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/dialogic/Nodes/TextBubble.gd
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ func handle_command(command:Array):
$sounds.play()
elif(command[1] == "pause"):
$WritingTimer.stop()
var x = text_label.visible_characters
get_parent().get_node("DialogicTimer").start(float(command[2]))
yield(get_parent().get_node("DialogicTimer"), "timeout")
start_text_timer()
# only continue, if no skip was performed
if text_label.visible_characters == x:
start_text_timer()


func skip():
Expand Down

0 comments on commit 6ef6134

Please sign in to comment.