Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: LoadingScene

[14:7] extends: FXGLScene

Wraps FXGL's LoadingScene, the scene shown during asynchronous setup work (asset loading, level construction). Reached at runtime via fxgl.getSceneService().getLoadingScene; obtain a wrapper via adopt.

Methods

  • LoadingScene ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing LoadingScene AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a LoadingScene.
    • @r A new wrapper.
  • pushNewTask (callback Cb)

    Queues an async Runnable to run while the LoadingScene is active; FXGL transitions to the play scene once the task finishes.

    • @p Cb is a callback with no arguments.
    • @r this object
  • pushNewJavaTask (object TaskObj)

    Queues an async javafx.concurrent.Task whose progress and message bind to the loading view; FXGL transitions when the task succeeds.

    • @p TaskObj is an AussomJavaObject around a javafx Task.
    • @r this object