item prices: show alch price when alching with Explorer's Ring interface
This commit is contained in:
@@ -142,6 +142,7 @@ public class WidgetID
|
||||
public static final int SEED_BOX_GROUP_ID = 128;
|
||||
public static final int ITEMS_KEPT_ON_DEATH_GROUP_ID = 4;
|
||||
public static final int SEED_VAULT_GROUP_ID = 631;
|
||||
public static final int EXPLORERS_RING_ALCH_GROUP_ID = 483;
|
||||
|
||||
static class WorldMap
|
||||
{
|
||||
@@ -828,4 +829,9 @@ public class WidgetID
|
||||
static final int ITEM_CONTAINER = 15;
|
||||
static final int ITEM_TEXT = 16;
|
||||
}
|
||||
|
||||
static class ExplorersRing
|
||||
{
|
||||
static final int INVENTORY = 7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,6 +118,8 @@ public enum WidgetInfo
|
||||
|
||||
IGNORE_TITLE(WidgetID.IGNORE_LIST_GROUP_ID, WidgetID.IgnoreList.TITLE),
|
||||
|
||||
EXPLORERS_RING_ALCH_INVENTORY(WidgetID.EXPLORERS_RING_ALCH_GROUP_ID, WidgetID.ExplorersRing.INVENTORY),
|
||||
|
||||
CLAN_CHAT_TITLE(WidgetID.CLAN_CHAT_GROUP_ID, WidgetID.ClanChat.TITLE),
|
||||
CLAN_CHAT_NAME(WidgetID.CLAN_CHAT_GROUP_ID, WidgetID.ClanChat.NAME),
|
||||
CLAN_CHAT_OWNER(WidgetID.CLAN_CHAT_GROUP_ID, WidgetID.ClanChat.OWNER),
|
||||
|
||||
@@ -52,6 +52,7 @@ class ItemPricesOverlay extends Overlay
|
||||
private static final int INVENTORY_ITEM_WIDGETID = WidgetInfo.INVENTORY.getPackedId();
|
||||
private static final int BANK_INVENTORY_ITEM_WIDGETID = WidgetInfo.BANK_INVENTORY_ITEMS_CONTAINER.getPackedId();
|
||||
private static final int BANK_ITEM_WIDGETID = WidgetInfo.BANK_ITEM_CONTAINER.getPackedId();
|
||||
private static final int EXPLORERS_RING_ITEM_WIDGETID = WidgetInfo.EXPLORERS_RING_ALCH_INVENTORY.getPackedId();
|
||||
|
||||
private final Client client;
|
||||
private final ItemPricesConfig config;
|
||||
@@ -109,6 +110,11 @@ class ItemPricesOverlay extends Overlay
|
||||
// Item tooltip values
|
||||
switch (groupId)
|
||||
{
|
||||
case WidgetID.EXPLORERS_RING_ALCH_GROUP_ID:
|
||||
if (!config.showWhileAlching())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
case WidgetID.INVENTORY_GROUP_ID:
|
||||
if (config.hideInventory())
|
||||
{
|
||||
@@ -142,7 +148,7 @@ class ItemPricesOverlay extends Overlay
|
||||
ItemContainer container = null;
|
||||
|
||||
// Inventory item
|
||||
if (widgetId == INVENTORY_ITEM_WIDGETID || widgetId == BANK_INVENTORY_ITEM_WIDGETID)
|
||||
if (widgetId == INVENTORY_ITEM_WIDGETID || widgetId == BANK_INVENTORY_ITEM_WIDGETID || widgetId == EXPLORERS_RING_ITEM_WIDGETID)
|
||||
{
|
||||
container = client.getItemContainer(InventoryID.INVENTORY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user