Package net.runelite.client.menus
Class MenuManager
- java.lang.Object
-
- net.runelite.client.menus.MenuManager
-
@Singleton public class MenuManager extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addManagedCustomMenu(WidgetMenuOption customMenuOption, Consumer<MenuEntry> callback)
Adds a CustomMenuOption to the list of managed menu options.void
addPlayerMenuItem(String menuText)
void
onMenuEntryAdded(MenuEntryAdded event)
void
onPlayerMenuOptionsChanged(PlayerMenuOptionsChanged event)
void
removeManagedCustomMenu(WidgetMenuOption customMenuOption)
Removes a CustomMenuOption from the list of managed menu options.void
removePlayerMenuItem(String menuText)
-
-
-
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 addcallback
- 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(MenuEntryAdded event)
-
addPlayerMenuItem
public void addPlayerMenuItem(String menuText)
-
removePlayerMenuItem
public void removePlayerMenuItem(String menuText)
-
onPlayerMenuOptionsChanged
@Subscribe public void onPlayerMenuOptionsChanged(PlayerMenuOptionsChanged event)
-
-