npc indicators: rename highlight dead npcs to ignore dead npcs
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user