Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FxglSubScene

[24:7] extends: Scene

Wraps FXGL's SubScene (com.almasb.fxgl.scene.SubScene), the abstract scene type that overlays the active scene without replacing it. Pushed and popped through SceneService.pushSubScene / popSubScene; useful for pause menus, modal overlays, and cutscene wrappers. Named FxglSubScene to disambiguate from the existing fx.SubScene wrapper, which wraps javafx.scene.SubScene (the 3D viewport container, see chunk 1). The no-arg constructor builds an AussomFxglSubScene, a concrete SubScene subclass with no extra behavior, so Aussom code can push a subscene without writing a Java helper subclass first.

Methods

  • FxglSubScene ()

    Creates a new empty AussomFxglSubScene.

  • adopt (object Ajo)

    Wraps an existing FXGL SubScene AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a SubScene.
    • @r A new wrapper.