Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void clickPointWithOption(Point p, String target, String option) {
- click(p, false);
- Loader.getAuto().sleepCondition(() -> Loader.getAuto().getClient().getMenuEntries() != null);
- final MenuEntry[] menuEntries = Loader.getAuto().getClient().getMenuEntries();
- for(MenuEntry menuEntry : menuEntries) {
- if(menuEntry.getTarget().equalsIgnoreCase(target)) {
- if(menuEntry.getOption().equalsIgnoreCase(option)) {
- click(p, true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement