public class Menu extends API
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
Menu() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the current menu's height.
|
java.util.List<Option> |
getMenu()
Gets a list of all the options in the menu
in the correct order.
|
int |
getMenuCount()
The amount of options in the menu.
|
int |
getMenuIndex(Entity entity,
java.lang.String[] names,
java.lang.String[] actions) |
int |
getMenuIndex(java.lang.String[] names,
java.lang.String[] actions)
Returns the menu index of the first action found using the entity name.
|
java.awt.Rectangle |
getOptionRectangle(int index) |
java.awt.Rectangle |
getRectangle() |
java.lang.String |
getTooltip() |
int |
getWidth()
Gets the current menu's width.
|
int |
getX()
Gets the current X position of the menu.
|
int |
getY()
Gets the current Y position of the menu.
|
void |
initializeModule() |
boolean |
isOpen()
Returns if a menu is open.
|
boolean |
onlyContainsCancel() |
boolean |
selectAction(java.lang.String action)
Selects an action from the available menu.
|
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public boolean isOpen()
public int getMenuCount()
public java.util.List<Option> getMenu()
public java.lang.String getTooltip()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public int getMenuIndex(java.lang.String[] names, java.lang.String[] actions)
names
- The name of the entity you wish to look for ("Maple tree", null)actions
- The possible actions you wish to search for.public boolean selectAction(java.lang.String action)
action
- The action you wish you to select.public int getMenuIndex(Entity entity, java.lang.String[] names, java.lang.String[] actions)
public java.awt.Rectangle getOptionRectangle(int index)
public boolean onlyContainsCancel()
public java.awt.Rectangle getRectangle()
public void initializeModule()
initializeModule
in class API