item prices: show alch price while selecting item to alch

This commit is contained in:
Hydrox6
2019-07-31 14:58:15 +01:00
parent e27459f1f0
commit 4b543d9dc2
2 changed files with 11 additions and 1 deletions

View File

@@ -86,4 +86,14 @@ public interface ItemPricesConfig extends Config
return false; return false;
} }
@ConfigItem(
keyName = "showWhileAlching",
name = "Show prices while alching",
description = "Show the price overlay while using High Alchemy",
position = 6
)
default boolean showWhileAlching()
{
return true;
}
} }

View File

@@ -95,7 +95,7 @@ class ItemPricesOverlay extends Overlay
switch (action) switch (action)
{ {
case ITEM_USE_ON_WIDGET: case ITEM_USE_ON_WIDGET:
if (!menuEntry.getTarget().contains("High Level Alchemy") || !config.showAlchProfit()) if (!config.showWhileAlching() || !menuEntry.getOption().equals("Cast") || !menuEntry.getTarget().contains("High Level Alchemy"))
{ {
break; break;
} }