Skip to content

PortraitSpec ​

Interface of @v12-engine/client

ts
export interface PortraitSpec extends PortraitFraming

A portrait of someone (DialogLine.portrait, SpeakerLook.portrait, client.portraits.show): a unit on the map by its name, a ref or its id; a unit type (type: someone not on the map, or the type of a unit not in sight); or a model of its own (model). Live (the model, playing) or a still of the type's model; framed as its type's look says, and as its own fields say over that

Members ​

mode ​

ts
mode?: 'live' | 'still';

Whether the portrait is live (the model, playing: the default) or a still picture of the type's model

model ​

ts
model?: ModelDef | string;

A model to show instead of a unit's: a model of the game's, or a file's address

type ​

ts
type?: string;

The unit type shown, or the type of unit where the screen does not see it

unit ​

ts
unit?: string | number;

The unit shown, by its name, a ref or its entity id

zoom ​

ts
zoom?: number;

How close the camera is, over its framing; 1 when left out