boosts plugin: Use ColorUtil functions

This commit is contained in:
Jordan Atwood
2018-07-17 10:23:56 -07:00
parent 339ece742c
commit c898fda923

View File

@@ -35,6 +35,7 @@ import net.runelite.client.ui.overlay.OverlayPosition;
import net.runelite.client.ui.overlay.OverlayPriority; import net.runelite.client.ui.overlay.OverlayPriority;
import net.runelite.client.ui.overlay.components.LineComponent; import net.runelite.client.ui.overlay.components.LineComponent;
import net.runelite.client.ui.overlay.components.PanelComponent; import net.runelite.client.ui.overlay.components.PanelComponent;
import net.runelite.client.util.ColorUtil;
class BoostsOverlay extends Overlay class BoostsOverlay extends Overlay
{ {
@@ -109,7 +110,8 @@ class BoostsOverlay extends Overlay
} }
else else
{ {
str = "<col=" + Integer.toHexString(strColor.getRGB() & 0xFFFFFF) + ">" + boosted + "<col=ffffff>/" + base; str = ColorUtil.prependColorTag(Integer.toString(boosted), strColor)
+ ColorUtil.prependColorTag("/" + base, Color.WHITE);
} }
panelComponent.getChildren().add(LineComponent.builder() panelComponent.getChildren().add(LineComponent.builder()