Class MenuManager


  • @Singleton
    public class MenuManager
    extends java.lang.Object
    • Method Detail

      • addManagedCustomMenu

        public void addManagedCustomMenu​(WidgetMenuOption customMenuOption,
                                         java.util.function.Consumer<net.runelite.api.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
      • onMenuEntryAdded

        @Subscribe
        public void onMenuEntryAdded​(net.runelite.api.events.MenuEntryAdded event)
      • addPlayerMenuItem

        public void addPlayerMenuItem​(java.lang.String menuText)
      • removePlayerMenuItem

        public void removePlayerMenuItem​(java.lang.String menuText)
      • onPlayerMenuOptionsChanged

        @Subscribe
        public void onPlayerMenuOptionsChanged​(net.runelite.api.events.PlayerMenuOptionsChanged event)