item prices: show alch price while selecting item to alch
This commit is contained in:
@@ -86,4 +86,14 @@ public interface ItemPricesConfig extends Config
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ class ItemPricesOverlay extends Overlay
|
||||
switch (action)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user