DefaultLoadingScreen
Extends: LoadingScreen
The engine's default loading screen: black, with a progress bar and a label.
Properties
backgroundColor(integer) — Packed RGBAbarColor(integer) — Packed RGBAbarBackgroundColor(integer) — Packed RGBAlabel(string) — Text above the bar ("" for none)font(roFont) — Font for the label (no label is drawn without one)
Constructor
new DefaultLoadingScreen(font?: roFont): DefaultLoadingScreenParameters
font(roFont, optional, default: "invalid")
Instance Methods
draw(renderer: BGE.Renderer, progress: float, dt: float): void
Parameters
renderer(BGE.Renderer)progress(float)dt(float)
Returns
void
getBarRect(
canvasWidth: float,
canvasHeight: float,
): BGE.Math.Rectangle
Where the progress bar goes on a canvas of the given size.
Parameters
canvasWidth(float)canvasHeight(float)
Returns
BGE.Math.Rectangle