Skip to content

LoadingLook beta ​

Interface of @v12-engine/client

ts
export interface LoadingLook

The screen while a game loads. Each way takes more of it over than the last: - declared: its words (text) and its background (CSS), the client's screen around them - in code: how far the files are, as they come (progress, given to the two below) - a component in the place of the client's (LoadingScreen, which it can wrap, or compose from LoadingText, LoadingPicture and LoadingMeter) - an element of the game's own (mount): any HTML, any framework

Members ​

background ​

ts
background?: string;

The background of the loading screen, any CSS background

component ​

ts
component?: (props: LoadingProps) => JSX.Element;

A screen of the game's own, in place of the client's

mount ​

ts
mount?: (element: HTMLElement, progress: () => LoadProgress) => () => void;

Draws the whole loading screen into element, told how far the files are as they come. Returns what takes it away

picture ​

ts
picture?: string;

A picture over the background, above the words: the game's logo or a splash, by address

text ​

ts
text?: string;

The words on the loading screen