How do I get the clickable area inside the minimap? For example, how would I know if a tile is visible on the minimap and able to be clicked?
Current code:
MiniMapTileDestination checkDest = new MiniMapTileDestination(bot, check, true);
Point mmPoint = checkDest.getExactPoint();
Point centerMM = new Point(642, 84);
if (checkDest.getExactPoint() == null || am.dist(mmPoint, centerMM) > 90) {
continue;
}
//Now, click check.getExactPoint()
However, it seems to be returning Points that are NOT in the minimap clickable area including the prayer and run toggle buttons. MiniMapTileDestination.isVisible does not work, only returns true if the tile is visible in the game window, not minimap. MiniMapTileDestination.evaluate seems to always return false. What I need is an area representing the clickable portion of the minimap. It must exist somewhere in the API for webwalk to function but I cant find it. Any help is appreciated!