Skip to content

LiteScreenPass beta ​

Class of @v12-engine/client/lite-views

ts
export declare class LiteScreenPass

The screen's frame on this renderer, the client's ScreenPass member for member: the cinematic's state, the client's fade and frame, the look, written each frame into the renderer's ScreenStages

Members ​

constructor ​

ts
constructor(host: LiteScreenHost, 
    timers: ViewTimers);

Constructs a new instance of the LiteScreenPass class

box ​

ts
get box(): ScreenBox;

Where the picture shows between the bars, as of the last frame

dispose ​

ts
dispose(): void;

The frame, the blur and the videos out of the stages, the tweens let go of

drawn ​

ts
get drawn(): ScreenState;

The state as the pass draws it this frame: the cinematic's over the client's fade and frame

fadeNow ​

ts
fadeNow: {
        color: Rgb;
        opacity: number;
    };

The client's fade (client.fade), kept apart from a cinematic's so it stays as it is left when one is over

fadeTo ​

ts
fadeTo(opacity: number, seconds: number): void;

The client's fade to its colour, opacity of the way, over seconds of the screen's time (client.fade)

frame ​

ts
frame(): void;

Once a frame: what the stages draw this frame, the HUD's box and the layers' transform

frameBars ​

ts
frameBars: ScreenBars;

The cinematic's frame (PlayOptions.letterbox), eased in and out by the client: drawn with the state's bars, whichever is more

look ​

ts
look: Required<Pick<ScreenLook, 'barSoft' | 'barShare'>> & {
        barColor: Rgb;
        fadeColor: Rgb;
    };

The look the game gave the frame (GameView.cinematics.screen.look)

on ​

ts
get on(): boolean;

Whether the frame is drawn now

onBox ​

ts
onBox?: (box: ScreenBox) => void;

Heard when where the picture shows between the bars changes: the HUD lays out to it

onLayers ​

ts
onLayers?: (transform: string) => void;

Heard when a crop or a stretch moves the picture: the layers over it follow (layerTransform)

reset ​

ts
reset(): void;

The cinematic's state back to the plain picture (its fade too: client.fade's stays)

resolve ​

ts
resolve: (path: string) => string;

Where a texture's file is, by its path (textures/... of the game's files)

set ​

ts
set(state: Partial<ScreenState>): void;

Changes parts of the state: set({ blur: 4 })

setFrame ​

ts
setFrame(letterbox: boolean | number, seconds?: number): void;

The cinematic's frame put on (bars of a ratio, or true for the look's share) or taken off (false), eased over seconds

setLook ​

ts
setLook(look: ScreenLook | undefined): void;

The look, as the game gave it

state ​

ts
state: ScreenState;

What the pass draws: the cinematic's (its lane, cut.screen), over the client's own fade and frame below

video ​

ts
video(element: HTMLVideoElement, options: Parameters<StageVideos['show']>[1]): StageVideoPlane;

A video drawn into the picture under the frame (Stage.videos), from the next frame on, until remove

videosLoaded ​

ts
get videosLoaded(): Promise<void>;

Settles at once: the code that draws videos is the renderer's, there with it