Skip to content

CutDialog beta ​

Class of @v12-engine/client

ts
export declare class CutDialog

The dialog of a cut: see the top of this file

Members ​

constructor ​

ts
constructor(cut: Cut);

Constructs a new instance of the CutDialog class

clear ​

ts
clear(): void;

Takes away every line the cut showed that is still up: the cinematic is over

ts
head(): LineInfo | null;

The line showing now, of the cut's or the rules', or nothing

history ​

ts
history(): readonly LineInfo[];

The lines said, the oldest first (DialogQueue.history): for a log of the conversation

lines ​

ts
get lines(): DialogQueue;

The queue the lines go into: the stage's (client.dialog), or one of the cut's own

next ​

ts
next(): boolean;

Enter: shows the rest of a line being typed, else moves on from the line showing (DialogQueue.next)

queue ​

ts
queue(): LineInfo[];

The lines waiting their turn behind the one showing: the cut's, then the rules'

say ​

ts
say(speaker: string, text: string | MessageRef, options?: number | SayOptions): Promise<void>;

See Cut.say

show ​

ts
show(line: DialogLine, options?: ShowOptions): QueuedLine;

Shows a line with no step of its own: what the dialog lane does with each of its clips. Its typewriter goes by the cut's clock; the line hook is heard as it shows. What it gives back takes it away; the cinematic over takes it away too

skipAll ​

ts
skipAll(): void;

Moves on from every line of the cinematic's, the one showing and those waiting: a script's say settles

words ​

ts
words(text: string | MessageRef): string;

The words of a line: as they are, or a message of the game's in the player's words (Stage.words)