Manages navigation and menus tabs within the setting menu.

Constructors

  • Creates an instance of NavigationManager. To create a new tab in the menu, add the mode to the modes array and the label to the labels array. and instantiate a new NavigationMenu instance in your handler like: this.navigationContainer = new NavigationMenu(this.scene, 0, 0);

    Returns NavigationManager

Properties

labels: string[]
modes: Mode[]
navigationMenus: default[] = ...
selectedMode: Mode = Mode.SETTINGS

Methods

  • Navigates to the previous mode in the modes array.

    Parameters

    • scene: any

      The current BattleScene instance.

    Returns void

  • Navigates to the next mode in the modes array.

    Parameters

    • scene: any

      The current BattleScene instance.

    Returns void