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 modes based on given direction

    Parameters

    • scene: any

      The current BattleScene instance

    • direction: any

      LEFT or RIGHT

    Returns void