LoadingLook beta
Interface of @v12-engine/client
export interface LoadingLookThe 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
background?: string;The background of the loading screen, any CSS background
component
component?: (props: LoadingProps) => JSX.Element;A screen of the game's own, in place of the client's
mount
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
picture?: string;A picture over the background, above the words: the game's logo or a splash, by address
text
text?: string;The words on the loading screen