Skip to content

UiClip beta ​

Interface of @v12-engine/client

ts
export interface UiClip extends Clip

A clip of the interface lane: a part of the game's own interface put up for its stretch

Members ​

anchor ​

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

Which part of the element is at the spot: its bottom middle (above), its middle (center) or its top (below)

height ​

ts
height?: number;

How far above the spot it is put

in ​

ts
in?: number;

For a title card: seconds it fades in over

layer ​

ts
layer?: CutUiLayer;

Where it goes: on the screen, over everything or pinned in the world (CutUiLayer)

offset ​

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

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

on ​

ts
on?: string | Vec2;

What it is pinned to in the world: a unit's name or a ref, or a spot

out ​

ts
out?: number;

For a title card: seconds it fades out over

props ​

ts
props?: Record<string, unknown>;

What the part is handed, as plain data

style ​

ts
style?: string;

For a title card: the name of its look

subtitle ​

ts
subtitle?: string;

For a title card: the words under the title

title ​

ts
title?: string;

Of a title card (the part title, TitleCard): its title, the words under it, its look, its seconds of fading in and out

ui ​

ts
ui: string;

The name of the interface part among the cinematic entry's (ui) or the script's (cut.uiParts)

z ​

ts
z?: number;

Its stacking among other elements of the layer