bank value plugin: add option to display exact value
This commit is contained in:
@@ -92,12 +92,30 @@ class BankTitle
|
|||||||
|
|
||||||
if (config.showGE() && gePrice != 0)
|
if (config.showGE() && gePrice != 0)
|
||||||
{
|
{
|
||||||
strCurrentTab += " (EX: " + StackFormatter.quantityToStackSize(gePrice) + ")";
|
strCurrentTab += " (EX: ";
|
||||||
|
|
||||||
|
if (config.showExact())
|
||||||
|
{
|
||||||
|
strCurrentTab += StackFormatter.formatNumber(gePrice) + ")";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strCurrentTab += StackFormatter.quantityToStackSize(gePrice) + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.showHA() && haPrice != 0)
|
if (config.showHA() && haPrice != 0)
|
||||||
{
|
{
|
||||||
strCurrentTab += " (HA: " + StackFormatter.quantityToStackSize(haPrice) + ")";
|
strCurrentTab += " (HA: ";
|
||||||
|
|
||||||
|
if (config.showExact())
|
||||||
|
{
|
||||||
|
strCurrentTab += StackFormatter.formatNumber(haPrice) + ")";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strCurrentTab += StackFormatter.quantityToStackSize(haPrice) + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("Setting bank title: {}", bankTitle + strCurrentTab);
|
log.debug("Setting bank title: {}", bankTitle + strCurrentTab);
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ public interface BankValueConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "showGE",
|
keyName = "showGE",
|
||||||
name = "Show Grand Exchange price",
|
name = "Show Grand Exchange price",
|
||||||
description = "Show grand exchange price total (GE)")
|
description = "Show grand exchange price total (GE)",
|
||||||
|
position = 1
|
||||||
|
)
|
||||||
default boolean showGE()
|
default boolean showGE()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
@@ -44,9 +46,22 @@ public interface BankValueConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "showHA",
|
keyName = "showHA",
|
||||||
name = "Show high alchemy price",
|
name = "Show high alchemy price",
|
||||||
description = "Show high alchemy price total (HA)")
|
description = "Show high alchemy price total (HA)",
|
||||||
|
position = 2
|
||||||
|
)
|
||||||
default boolean showHA()
|
default boolean showHA()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "showExact",
|
||||||
|
name = "Show exact bank value",
|
||||||
|
description = "Show exact bank value",
|
||||||
|
position = 3
|
||||||
|
)
|
||||||
|
default boolean showExact()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user