-
Posts
7986 -
Joined
-
Last visited
-
Days Won
58 -
Feedback
100%
Community Answers
-
Swizzbeat's post in interacting with a rectangle? was marked as the answer
public boolean selectMenuOption(String option) {
if (sI.menu.isOpen()) {
List<Option> options = sI.menu.getMenu();
for (int i = 0; i < options.size(); i++) {
if (options.get(i).action.equalsIgnoreCase(option)) {
return sI.mouse.click(new RectangleDestination(sI.bot, sI.menu.getX(), sI.menu.getY() + 20 + (i * 15), sI.menu.getWidth(), 15));
}
}
}
return false;
}
-
Swizzbeat's post in get farthest (or minimum distance) visible main screen tile in a given direction? was marked as the answer
I'm pretty sure the game map is 16 by 16, so the farthest position to the right would be:
new Position(myPosition.getX() + 16, myPosition().getY(), myPosition().getZ()); Farthest position below:
new Position(myPosition().getX(), myPosition().getY() - 16, myPosition().getZ()); etc...
-
Swizzbeat's post in common GUI was marked as the answer
Swing is the library, but JFrame is what you're going to want to look at.
-
Swizzbeat's post in Displaying a png in the client was marked as the answer
Image image = ImageIO.read(new URL("www.pornhub.com/banner"));