ESCDialogPlayer

Extends: Node

Description

Escoria dialog player

Constants Descriptions

KEYTEXT_REGEX

const KEYTEXT_REGEX: String = "^((?<key>[^:]+):)?\"(?<text>.+)\""

A regular expression that separates the translation key from the text

Property Descriptions

is_speaking

var is_speaking: bool = false

Whether the player is currently speaking

Method Descriptions

say

func say(character: String, type: String, text: String) -> void

Make a character say a text

Parameters

  • character: Character that is talking

  • type: UI to use for the dialog

  • text: Text to say

speedup

func speedup() -> void

Called when a dialog line is skipped

start_dialog_choices

func start_dialog_choices(dialog: ESCDialog, type: String = "simple")

Display a list of choices

Parameters

  • dialog: The dialog to start

interrupt

func interrupt()

Interrupt the currently running dialog

Signals

  • signal option_chosen(option): Emitted when an answer as chosem

Parameters

  • option: The dialog option that was chosen

  • signal say_finished(): Emitted when a say command finished