LiteScreenPass beta
Class of @v12-engine/client/lite-views
export declare class LiteScreenPassThe 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
constructor(host: LiteScreenHost,
timers: ViewTimers);Constructs a new instance of the LiteScreenPass class
box
get box(): ScreenBox;Where the picture shows between the bars, as of the last frame
dispose
dispose(): void;The frame, the blur and the videos out of the stages, the tweens let go of
drawn
get drawn(): ScreenState;The state as the pass draws it this frame: the cinematic's over the client's fade and frame
fadeNow
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
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
frame(): void;Once a frame: what the stages draw this frame, the HUD's box and the layers' transform
frameBars
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
look: Required<Pick<ScreenLook, 'barSoft' | 'barShare'>> & {
barColor: Rgb;
fadeColor: Rgb;
};The look the game gave the frame (GameView.cinematics.screen.look)
on
get on(): boolean;Whether the frame is drawn now
onBox
onBox?: (box: ScreenBox) => void;Heard when where the picture shows between the bars changes: the HUD lays out to it
onLayers
onLayers?: (transform: string) => void;Heard when a crop or a stretch moves the picture: the layers over it follow (layerTransform)
reset
reset(): void;The cinematic's state back to the plain picture (its fade too: client.fade's stays)
resolve
resolve: (path: string) => string;Where a texture's file is, by its path (textures/... of the game's files)
set
set(state: Partial<ScreenState>): void;Changes parts of the state: set({ blur: 4 })
setFrame
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
setLook(look: ScreenLook | undefined): void;The look, as the game gave it
state
state: ScreenState;What the pass draws: the cinematic's (its lane, cut.screen), over the client's own fade and frame below
video
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
get videosLoaded(): Promise<void>;Settles at once: the code that draws videos is the renderer's, there with it