chore: speech stops immediately when skipping/interrupting

This commit is contained in:
Duncan Brown
2022-11-15 14:49:06 -05:00
committed by Julian Murgia
parent bd2f28214b
commit d955e2ef1b

View File

@@ -99,5 +99,10 @@ func speedup():
# The say command has been interrupted, cancel the dialog display
func interrupt():
if _dialog_player.get_children().has(_type_player):
(
escoria.object_manager.get_object(escoria.object_manager.SPEECH).node\
as ESCSpeechPlayer
).set_state("off")
_dialog_player.remove_child(_type_player)
emit_signal("say_finished")