feat: adds additional options to dialog manager, including a left-click action option and a text skipping option

This commit is contained in:
Duncan Brown
2022-12-01 22:57:16 -05:00
committed by Julian Murgia
parent d955e2ef1b
commit d676e50284
9 changed files with 141 additions and 35 deletions

View File

@@ -90,12 +90,18 @@ func choose(dialog_player: Node, dialog: ESCDialog):
emit_signal("option_chosen", option)
# Trigger running the dialog faster
# Trigger running the dialogue faster
func speedup():
if _type_player != null:
_type_player.speedup()
# Trigger an instant finish of the current dialog
func finish():
if _type_player != null:
_type_player.finish()
# The say command has been interrupted, cancel the dialog display
func interrupt():
if _dialog_player.get_children().has(_type_player):