CutDialog beta
Class of @v12-engine/client
export declare class CutDialogThe dialog of a cut: see the top of this file
Members
constructor
constructor(cut: Cut);Constructs a new instance of the CutDialog class
clear
clear(): void;Takes away every line the cut showed that is still up: the cinematic is over
head
head(): LineInfo | null;The line showing now, of the cut's or the rules', or nothing
history
history(): readonly LineInfo[];The lines said, the oldest first (DialogQueue.history): for a log of the conversation
lines
get lines(): DialogQueue;The queue the lines go into: the stage's (client.dialog), or one of the cut's own
next
next(): boolean;Enter: shows the rest of a line being typed, else moves on from the line showing (DialogQueue.next)
queue
queue(): LineInfo[];The lines waiting their turn behind the one showing: the cut's, then the rules'
say
say(speaker: string, text: string | MessageRef, options?: number | SayOptions): Promise<void>;See Cut.say
show
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
skipAll(): void;Moves on from every line of the cinematic's, the one showing and those waiting: a script's say settles
words
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)