boosts overlay: show boosts in color

This commit is contained in:
Adam
2018-02-26 11:49:09 -05:00
parent c3325f84d2
commit a584acb2e3

View File

@@ -111,16 +111,15 @@ class BoostsOverlay extends Overlay
}
String str;
Color strColor = Color.WHITE;
int boost = boosted - base;
Color strColor = getTextColor(boost);
if (!config.useRelativeBoost())
{
str = boosted + "/" + base;
str = "<col=" + Integer.toHexString(strColor.getRGB() & 0xFFFFFF) + ">" + boosted + "<col=ffffff>/" + base;
}
else
{
int boost = boosted - base;
str = String.valueOf(boost);
strColor = getTextColor(boost);
if (boost > 0)
{
str = "+" + str;