Skip to content

PortraitOptions beta ​

Interface of @v12-engine/client

ts
export interface PortraitOptions

How a portrait is drawn, beside what it is (PortraitSpec): every so many frames (1, every frame, when left out; 2 every other), for a portrait that need not move as smoothly as the scene, at a part of the cost; still: false for nothing where it cannot be live (no still of the type: what shows it has a picture of its own); and whether it talks (a line's portrait does, the selection's does not), with the line's mood

Members ​

emotion ​

ts
emotion?: string;

The mood of the line it says (DialogLine.emotion): its look's clip for it, or its talk <mood> clip

every ​

ts
every?: number;

Draws every so many frames; 1, every frame, when left out

onDrawn ​

ts
onDrawn?(drawn: boolean): void;

Told whether what the box shows now is on its canvas (true, once first drawn there) or cannot be (false: nothing to show live, or its model did not load), each time it is asked to show someone else: what shows a picture in the box until then (the HUD's faces) takes it away, or keeps it

still ​

ts
still?: boolean;

Whether a still of the type shows where the portrait cannot be live; false shows nothing then

talking ​

ts
talking?: boolean;

Whether it plays its talk: true when left out (a line's)