Unify NPC highlighting color settings

Merge NPC highlight and tag color to one setting.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-05-07 15:51:41 +02:00
parent 75674cfd55
commit 464f5057c3
3 changed files with 6 additions and 17 deletions

View File

@@ -60,7 +60,7 @@ public class NpcClickboxOverlay extends Overlay
{
for (NPC npc : plugin.getHighlightedNpcs())
{
renderNpcOverlay(graphics, npc, npc.getName(), config.getNpcColor());
renderNpcOverlay(graphics, npc, npc.getName(), config.getHighlightColor());
}
NPC[] npcs = client.getCachedNPCs();
@@ -69,7 +69,7 @@ public class NpcClickboxOverlay extends Overlay
NPC npc = npcs[npcId];
if (npc != null && npc.getName() != null)
{
renderNpcOverlay(graphics, npc, npc.getName(), config.getTagColor());
renderNpcOverlay(graphics, npc, npc.getName(), config.getHighlightColor());
}
}

View File

@@ -64,7 +64,7 @@ public interface NpcIndicatorsConfig extends Config
name = "Highlight Color",
description = "Color of the NPC highlight"
)
default Color getNpcColor()
default Color getHighlightColor()
{
return Color.CYAN;
}
@@ -82,17 +82,6 @@ public interface NpcIndicatorsConfig extends Config
@ConfigItem(
position = 4,
keyName = "tagColor",
name = "Tag Color",
description = "Color of the NPC tag highlight"
)
default Color getTagColor()
{
return Color.CYAN;
}
@ConfigItem(
position = 5,
keyName = "drawNames",
name = "Draw names above NPC",
description = "Configures whether or not NPC names should be drawn above the NPC"
@@ -103,7 +92,7 @@ public interface NpcIndicatorsConfig extends Config
}
@ConfigItem(
position = 6,
position = 5,
keyName = "drawMinimapNames",
name = "Draw names on minimap",
description = "Configures whether or not NPC names should be drawn on the minimap"

View File

@@ -58,7 +58,7 @@ public class NpcMinimapOverlay extends Overlay
{
for (NPC npc : plugin.getHighlightedNpcs())
{
renderNpcOverlay(graphics, npc, npc.getName(), config.getNpcColor());
renderNpcOverlay(graphics, npc, npc.getName(), config.getHighlightColor());
}
NPC[] npcs = client.getCachedNPCs();
@@ -67,7 +67,7 @@ public class NpcMinimapOverlay extends Overlay
NPC npc = npcs[npcId];
if (npc != null && npc.getName() != null)
{
renderNpcOverlay(graphics, npc, npc.getName(), config.getTagColor());
renderNpcOverlay(graphics, npc, npc.getName(), config.getHighlightColor());
}
}