npc indicators: rename highlight dead npcs to ignore dead npcs

This commit is contained in:
Adam
2020-06-04 22:39:21 -04:00
parent e8b464f217
commit af7c833695
4 changed files with 8 additions and 8 deletions

View File

@@ -100,13 +100,13 @@ public interface NpcIndicatorsConfig extends Config
@ConfigItem(
position = 6,
keyName = "highlightDeadNPCs",
name = "Highlight dead NPCs",
description = "Highlight dead NPCs"
keyName = "ignoreDeadNpcs",
name = "Ignore dead NPCs",
description = "Prevents highlighting NPCs after they are dead"
)
default boolean highlightDeadNpcs()
default boolean ignoreDeadNpcs()
{
return false;
return true;
}
@ConfigItem(

View File

@@ -261,7 +261,7 @@ public class NpcIndicatorsPlugin extends Plugin
if (config.highlightMenuNames() &&
NPC_MENU_ACTIONS.contains(MenuAction.of(type)) &&
highlightedNpcs.stream().anyMatch(npc -> npc.getIndex() == event.getIdentifier() && (!npc.isDead() || config.highlightDeadNpcs())))
highlightedNpcs.stream().anyMatch(npc -> npc.getIndex() == event.getIdentifier() && (!npc.isDead() || !config.ignoreDeadNpcs())))
{
MenuEntry[] menuEntries = client.getMenuEntries();
final MenuEntry menuEntry = menuEntries[menuEntries.length - 1];

View File

@@ -69,7 +69,7 @@ public class NpcMinimapOverlay extends Overlay
{
NPCComposition npcComposition = actor.getTransformedComposition();
if (npcComposition == null || !npcComposition.isInteractible()
|| (actor.isDead() && !config.highlightDeadNpcs()))
|| (actor.isDead() && config.ignoreDeadNpcs()))
{
return;
}

View File

@@ -147,7 +147,7 @@ public class NpcSceneOverlay extends Overlay
{
NPCComposition npcComposition = actor.getTransformedComposition();
if (npcComposition == null || !npcComposition.isInteractible()
|| (actor.isDead() && !config.highlightDeadNpcs()))
|| (actor.isDead() && config.ignoreDeadNpcs()))
{
return;
}