Revert "player indicators plugin: Use ColorUtil functions"
This reverts commit a9d29a70f4.
This commit is contained in:
@@ -40,8 +40,6 @@ import net.runelite.client.game.ClanManager;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
import net.runelite.client.ui.overlay.OverlayManager;
|
||||
import net.runelite.client.util.ColorUtil;
|
||||
import net.runelite.client.util.Text;
|
||||
|
||||
@PluginDescriptor(
|
||||
name = "Player Indicators",
|
||||
@@ -162,9 +160,15 @@ public class PlayerIndicatorsPlugin extends Plugin
|
||||
|
||||
if (color != null && config.colorPlayerMenu())
|
||||
{
|
||||
// strip out existing tags (color, etc.)
|
||||
String target = Text.removeTags(lastEntry.getTarget());
|
||||
lastEntry.setTarget(ColorUtil.prependColorTag(target, color));
|
||||
// strip out existing <col...
|
||||
String target = lastEntry.getTarget();
|
||||
int idx = target.indexOf('>');
|
||||
if (idx != -1)
|
||||
{
|
||||
target = target.substring(idx + 1);
|
||||
}
|
||||
|
||||
lastEntry.setTarget("<col=" + Integer.toHexString(color.getRGB() & 0xFFFFFF) + ">" + target);
|
||||
}
|
||||
|
||||
if (image != -1 && config.showClanRanks())
|
||||
|
||||
Reference in New Issue
Block a user