Fix coloring of warned attack styles

Fix coloring of warned attack styles for attack indicator plugin. This
was in before, but probably got lost during the changes to use new UI
comoponents.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-01-26 12:08:34 +01:00
parent e1f84a87ae
commit c62d7cac2e

View File

@@ -24,6 +24,7 @@
*/
package net.runelite.client.plugins.attackindicator;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Point;
@@ -57,6 +58,8 @@ public class AttackIndicatorOverlay extends Overlay
}
final String attackStyleString = plugin.getAttackStyle().getName();
panelComponent.setTitleColor(plugin.isWarnedSkillSelected() ? Color.RED : Color.WHITE);
panelComponent.setTitle(attackStyleString);
panelComponent.setWidth(COMPONENT_WIDTH);