Basics
Guides
API Reference
Basics
Guides
API Reference
[20:7] extends: FXGLMenu
Wraps FXGL's FXGLDefaultMenu (com.almasb.fxgl.app.scene.FXGLDefaultMenu), the engine's built-in stylized main / game menu. Construction takes a MenuType (use MenuType.MAIN_MENU() or MenuType.GAME_MENU() as the underlying enum value) to select which menu body the instance renders. The default menu is wired automatically by the default SceneFactory. Construct one directly only when returning it from a custom SceneFactory override.
FXGLDefaultMenu (MenuTypeObj = null)
Creates a new FXGLDefaultMenu of the given MenuType. Pass null to construct an empty wrapper for adopt.
MenuTypeObj is an AussomJavaObject around a MenuType enum value, or null.adopt (object Ajo)
Wraps an existing FXGLDefaultMenu AussomJavaObject.
Ajo is an AussomJavaObject around an FXGLDefaultMenu.A new wrapper.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.