chore: speech stops immediately when skipping/interrupting
This commit is contained in:
committed by
Julian Murgia
parent
bd2f28214b
commit
d955e2ef1b
@@ -99,5 +99,10 @@ func speedup():
|
|||||||
# The say command has been interrupted, cancel the dialog display
|
# The say command has been interrupted, cancel the dialog display
|
||||||
func interrupt():
|
func interrupt():
|
||||||
if _dialog_player.get_children().has(_type_player):
|
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)
|
_dialog_player.remove_child(_type_player)
|
||||||
emit_signal("say_finished")
|
emit_signal("say_finished")
|
||||||
|
|||||||
Reference in New Issue
Block a user