Disable hover stack
This commit is contained in:
@@ -108,8 +108,8 @@ func do_say(global_id: String, text: String) -> void:
|
||||
# before we're ready, and only if it's necessary
|
||||
if not _dialog_player.get_children().has(_type_player):
|
||||
_dialog_player.add_child(_type_player)
|
||||
if not _dialog_player.get_children().has(_dialog_tip):
|
||||
_dialog_player.add_child(_dialog_tip)
|
||||
show_dialog_tip()
|
||||
|
||||
|
||||
_type_player.say(global_id, text)
|
||||
|
||||
@@ -144,7 +144,7 @@ func _initialize_say_states(global_id: String, text: String, type: String) -> vo
|
||||
func _on_say_finished():
|
||||
if not _should_preserve_dialog_box and _dialog_player.get_children().has(_type_player):
|
||||
_dialog_player.remove_child(_type_player)
|
||||
_dialog_player.remove_child(_dialog_tip)
|
||||
hide_dialop_tip()
|
||||
|
||||
_is_saying = false
|
||||
|
||||
@@ -211,7 +211,7 @@ func interrupt():
|
||||
|
||||
if not _should_preserve_dialog_box and _dialog_player.get_children().has(_type_player):
|
||||
_dialog_player.remove_child(_type_player)
|
||||
_dialog_player.remove_child(_dialog_tip)
|
||||
hide_dialop_tip()
|
||||
|
||||
emit_signal("say_finished")
|
||||
|
||||
@@ -220,3 +220,11 @@ func interrupt():
|
||||
func voice_audio_finished():
|
||||
if is_instance_valid(_type_player):
|
||||
_type_player.voice_audio_finished()
|
||||
|
||||
|
||||
func show_dialog_tip():
|
||||
if not _dialog_player.get_children().has(_dialog_tip):
|
||||
_dialog_player.add_child(_dialog_tip)
|
||||
|
||||
func hide_dialop_tip():
|
||||
_dialog_player.remove_child(_dialog_tip)
|
||||
|
||||
Reference in New Issue
Block a user