Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MenuType

[16:14] static extends: object

Helper for FXGL's MenuType enum (com.almasb.fxgl.app.scene.MenuType). Identifies whether a given FXGLMenu instance is the main menu (shown before a game starts) or the in-game pause menu.

  • MAIN_MENU — the title-screen menu.
  • GAME_MENU — the in-game pause menu.

Methods

  • MAIN_MENU ()

    Returns the MAIN_MENU value.

    • @r An AussomJavaObject around the enum value.
  • GAME_MENU ()

    Returns the GAME_MENU value.

    • @r An AussomJavaObject around the enum value.
  • get (string Name)

    Resolves a MenuType enum value by name.

    • @p Name is one of "MAIN_MENU", "GAME_MENU".
    • @r An AussomJavaObject around the enum value.
  • values ()

    Returns MenuType[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf strict lookup.