DialogLine beta
Interface of @v12-engine/client
export interface DialogLineA 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
color?: string;The colour of the name, over the speaker's
emotion
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
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
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
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
seconds?: number;Seconds it shows: as long as it takes to read (and to type, with a typewriter) when left out
side
side?: LineSide;Where the box is across the screen: in the middle when left out, the portrait on the left
skippable
skippable?: boolean;Enter and a click move it on: true when left out. A line that waits can always be moved on
speaker
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
text: string;The words, as shown
ui
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
voice?: string;What it sounds like: a sound's name, over the speaker's voice
waits
waits?: boolean;It stays until it is moved on (Enter, or a click), and says so