DefaultLoadingScreen

Extends: LoadingScreen

The engine's default loading screen: black, with a progress bar and a label.

Properties

  • backgroundColor (integer) — Packed RGBA
  • barColor (integer) — Packed RGBA
  • barBackgroundColor (integer) — Packed RGBA
  • label (string) — Text above the bar ("" for none)
  • font (roFont) — Font for the label (no label is drawn without one)

Constructor

new DefaultLoadingScreen(font?: roFont): DefaultLoadingScreen

Parameters

  • font (roFont, optional, default: "invalid")

Instance Methods

draw(renderer: BGE.Renderer, progress: float, dt: float): void

Parameters

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