PortraitSpec
Interface of @v12-engine/client
export interface PortraitSpec extends PortraitFramingA 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
mode?: 'live' | 'still';Whether the portrait is live (the model, playing: the default) or a still picture of the type's model
model
model?: ModelDef | string;A model to show instead of a unit's: a model of the game's, or a file's address
type
type?: string;The unit type shown, or the type of unit where the screen does not see it
unit
unit?: string | number;The unit shown, by its name, a ref or its entity id
zoom
zoom?: number;How close the camera is, over its framing; 1 when left out