Class

Dialog

Dialog() → {Dialog}

Constructor

# new Dialog() → {Dialog}

The builtin dialog window system.

View Source dialog.js, line 12

Dialog

Methods

# show(config) → {undefined}

Shows the default dialog window based the supplied config. The dialog window can be set to appear at the "TOP", "CENTER", or "BOTTOM" of the screen. It can also be supplied with an image for the blinking next marker, a profile image of the speaker, and a typing sound that plays while it is animating. Note: The current hardcoded next key is "E".
Parameters:
Name Type Description
config Object

View Source dialog.js, line 40

undefined
Example
let config = {
 position: "CENTER",
 advancementKey: "E",
 nextMarkerImage: "next_marker.png",
 profileImage: rpgcode.getCharacter().graphics["PROFILE"],
 typingSound: "typing_loop.wav",
 text: "Hello, this text will be wrote to the window like a type-writer."
};
await dialog.show(config);