Class MenuManager


  • @Singleton
    public class MenuManager
    extends Object
    • Method Detail

      • addManagedCustomMenu

        public void addManagedCustomMenu​(WidgetMenuOption customMenuOption,
                                         Consumer<MenuEntry> callback)
        Adds a CustomMenuOption to the list of managed menu options.
        Parameters:
        customMenuOption - The custom menu to add
        callback - callback to be called when the menu is clicked
      • removeManagedCustomMenu

        public void removeManagedCustomMenu​(WidgetMenuOption customMenuOption)
        Removes a CustomMenuOption from the list of managed menu options.
        Parameters:
        customMenuOption - The custom menu to add
      • addPlayerMenuItem

        public void addPlayerMenuItem​(String menuText)
      • removePlayerMenuItem

        public void removePlayerMenuItem​(String menuText)