API Docs for:
Show:

ResourceLoader Class

Module: gs

The resource helps to load a bunch of resources from different kind of data structures.

Methods

loadAnimation

(
  • animation
)
static

Loads all resources for the specified animation.

Parameters:

  • animation Object
    • The animation-record.

loadEventCommandsGraphics

(
  • commands
)
Boolean static

Loads all resources needed by the specified list of commands.

Parameters:

  • commands Object
    • The list of commands.

Returns:

Boolean:

Indicates if data needs to be loaded.

loadEventCommandsGraphics

(
  • commands
)
static

Loads all resources needed by the specified list of commands.

Parameters:

  • commands Object
    • The list of commands.

loadSystemGraphics

() static

Loads all system graphics.

loadSystemSounds

() static

Loads all system sounds.

loadUiDataFieldsGraphics

(
  • layout
)
static

Loads all graphics for the specified layout-descriptor.

Parameters:

  • layout Object
    • The layout descriptor.

loadUiDataFieldsGraphics

(
  • layout
)
static

Loads all graphics for the specified layout-descriptor.

Parameters:

  • layout Object
    • The layout descriptor.

loadUiGraphicsFromObject

(
  • layout
)
static

Loads all graphics for the specified layout-descriptor.

Parameters:

  • layout Object
    • The layout descriptor.

loadUiTypesGraphics

(
  • types
)
static

Loads all graphics for the specified list of custom layout types/templates

Parameters:

  • types Object
    • An array of custom layout types/templates