Skip to content

CutUiOptions beta ​

Interface of @v12-engine/client

ts
export interface CutUiOptions

How a cinematic's interface is put up: its layer (screen when left out; world where it says at), where in the world (a unit by name or ref, an id, a spot), how high above it and how far off on the screen, its stacking

Members ​

anchor ​

ts
anchor?: 'above' | 'center' | 'below';

Which part of the element is at the spot: its bottom middle (above, when left out), its middle, its top

at ​

ts
at?: string | number | Vec2;

What it is pinned to in the world: a unit by its name or ref, an entity id, or a spot in cells

height ​

ts
height?: number;

How far above the spot it is put

layer ​

ts
layer?: CutUiLayer;

Where it goes: over the picture (screen, the default), over everything (hud) or pinned in the world (world, where at is said)

offset ​

ts
offset?: {
        x?: number;
        y?: number;
    };

How far off on the screen it is moved, in pixels along x and y

z ​

ts
z?: number;

Its stacking among other elements of the layer