runelite-client: use menu entries for focusing world map points
The previous way had usability issues since it would cover up the close button, consumed clicks for no reason on any icon, making it difficult to pan around the map when zoomed out, and had no tooltips. It previously also accessed widgets on the EDT, which is a threading issue.
This commit is contained in:
@@ -172,6 +172,7 @@ public class WidgetID
|
||||
{
|
||||
static final int MAPVIEW = 7;
|
||||
static final int OVERVIEW_MAP = 10;
|
||||
static final int BOTTOM_BAR = 22;
|
||||
static final int SEARCH = 25;
|
||||
static final int SURFACE_SELECTOR = 33;
|
||||
static final int TOOLTIP = 41;
|
||||
|
||||
@@ -51,6 +51,7 @@ public enum WidgetInfo
|
||||
|
||||
WORLD_MAP_VIEW(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.MAPVIEW),
|
||||
WORLD_MAP_OVERVIEW_MAP(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.OVERVIEW_MAP),
|
||||
WORLD_MAP_BOTTOM_BAR(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.BOTTOM_BAR),
|
||||
WORLD_MAP_SEARCH(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.SEARCH),
|
||||
WORLD_MAP_SURFACE_SELECTOR(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.SURFACE_SELECTOR),
|
||||
WORLD_MAP_TOOLTIP(WidgetID.WORLD_MAP_GROUP_ID, WidgetID.WorldMap.TOOLTIP),
|
||||
|
||||
Reference in New Issue
Block a user