Skip to content

DialogLine beta ​

Interface of @v12-engine/client

ts
export interface DialogLine

A line of dialog as the screen says it: who says it and the words, how long it shows, and how. What it leaves out comes from its speaker's look (GameView.cinematics.speakers) and the dialog's (GameView.cinematics.dialog)

Members ​

color ​

ts
color?: string;

The colour of the name, over the speaker's

emotion ​

ts
emotion?: string;

How it is said (angry, whisper): the box has it as data-emotion, for a game's styles or its own box

holds ​

ts
holds?: boolean;

For a line that waits: once its time is up, the cinematic's clock stands still until it is moved on, so the picture stands on the line. The dialog lane's lines do by default; a script's do not (the script waits on the line already, and what it started beside it goes on)

pace ​

ts
pace?: number;

A typewriter: characters a second the words are revealed at (40 reads well). The dialog's own (typewriter) when left out, 0 for all at once

portrait ​

ts
portrait?: PortraitRef;

A picture of the speaker for this line, over their look's (SpeakerLook.portrait): an image's address, or a unit's face, live or still (PortraitSpec: { unit: 'hero' })

seconds ​

ts
seconds?: number;

Seconds it shows: as long as it takes to read (and to type, with a typewriter) when left out

side ​

ts
side?: LineSide;

Where the box is across the screen: in the middle when left out, the portrait on the left

skippable ​

ts
skippable?: boolean;

Enter and a click move it on: true when left out. A line that waits can always be moved on

speaker ​

ts
speaker: string;

Who says it, by an id of the game's ('td.commander'): their name, portrait, colour and voice are the view's

text ​

ts
text: string;

The words, as shown

ui ​

ts
ui?: Own<DialogProps>;

The box this line is drawn in, over the dialog's: a component, or an element of the game's own (DialogProps)

voice ​

ts
voice?: string;

What it sounds like: a sound's name, over the speaker's voice

waits ​

ts
waits?: boolean;

It stays until it is moved on (Enter, or a click), and says so