Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. public void clickPointWithOption(Point p, String target, String option) {
  2. click(p, false);
  3. Loader.getAuto().sleepCondition(() -> Loader.getAuto().getClient().getMenuEntries() != null);
  4. final MenuEntry[] menuEntries = Loader.getAuto().getClient().getMenuEntries();
  5. for(MenuEntry menuEntry : menuEntries) {
  6. if(menuEntry.getTarget().equalsIgnoreCase(target)) {
  7. if(menuEntry.getOption().equalsIgnoreCase(option)) {
  8. click(p, true);
  9. }
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement