Merge pull request #5761 from MagicfTail/Yellow-boost
Add support for making the boost colour yellow if below boost threshold
This commit is contained in:
@@ -76,12 +76,12 @@ public class BoostIndicator extends InfoBox
|
||||
int boosted = client.getBoostedSkillLevel(skill),
|
||||
base = client.getRealSkillLevel(skill);
|
||||
|
||||
if (boosted > base)
|
||||
if (boosted < base)
|
||||
{
|
||||
return Color.GREEN;
|
||||
return new Color(238, 51, 51);
|
||||
}
|
||||
|
||||
return new Color(238, 51, 51);
|
||||
return boosted - base < config.boostThreshold() ? Color.YELLOW : Color.GREEN;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -127,12 +127,12 @@ class BoostsOverlay extends Overlay
|
||||
|
||||
private Color getTextColor(int boost)
|
||||
{
|
||||
if (boost > 0)
|
||||
if (boost < 0)
|
||||
{
|
||||
return Color.GREEN;
|
||||
return new Color(238, 51, 51);
|
||||
}
|
||||
|
||||
return new Color(238, 51, 51);
|
||||
return boost < config.boostThreshold() ? Color.YELLOW : Color.GREEN;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user