Ignore highlights when value is set to 0 (disable)
When highlight value is set to 0, disable highlight for that particular configuration. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -342,11 +342,31 @@ public class GroundItemsPlugin extends Plugin
|
|||||||
|
|
||||||
// Cache colors
|
// Cache colors
|
||||||
priceChecks.clear();
|
priceChecks.clear();
|
||||||
priceChecks.put(config.insaneValuePrice(), config.insaneValueColor());
|
|
||||||
priceChecks.put(config.highValuePrice(), config.highValueColor());
|
if (config.insaneValuePrice() > 0)
|
||||||
priceChecks.put(config.mediumValuePrice(), config.mediumValueColor());
|
{
|
||||||
priceChecks.put(config.lowValuePrice(), config.lowValueColor());
|
priceChecks.put(config.insaneValuePrice(), config.insaneValueColor());
|
||||||
priceChecks.put(config.getHighlightOverValue(), config.highlightedColor());
|
}
|
||||||
|
|
||||||
|
if (config.highValuePrice() > 0)
|
||||||
|
{
|
||||||
|
priceChecks.put(config.highValuePrice(), config.highValueColor());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.mediumValuePrice() > 0)
|
||||||
|
{
|
||||||
|
priceChecks.put(config.mediumValuePrice(), config.mediumValueColor());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.lowValuePrice() > 0)
|
||||||
|
{
|
||||||
|
priceChecks.put(config.lowValuePrice(), config.lowValueColor());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.getHighlightOverValue() > 0)
|
||||||
|
{
|
||||||
|
priceChecks.put(config.getHighlightOverValue(), config.highlightedColor());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user