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(
|
@ConfigItem(
|
||||||
position = 6,
|
position = 6,
|
||||||
keyName = "highlightDeadNPCs",
|
keyName = "ignoreDeadNpcs",
|
||||||
name = "Highlight dead NPCs",
|
name = "Ignore dead NPCs",
|
||||||
description = "Highlight dead NPCs"
|
description = "Prevents highlighting NPCs after they are dead"
|
||||||
)
|
)
|
||||||
default boolean highlightDeadNpcs()
|
default boolean ignoreDeadNpcs()
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ public class NpcIndicatorsPlugin extends Plugin
|
|||||||
|
|
||||||
if (config.highlightMenuNames() &&
|
if (config.highlightMenuNames() &&
|
||||||
NPC_MENU_ACTIONS.contains(MenuAction.of(type)) &&
|
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();
|
MenuEntry[] menuEntries = client.getMenuEntries();
|
||||||
final MenuEntry menuEntry = menuEntries[menuEntries.length - 1];
|
final MenuEntry menuEntry = menuEntries[menuEntries.length - 1];
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class NpcMinimapOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
NPCComposition npcComposition = actor.getTransformedComposition();
|
NPCComposition npcComposition = actor.getTransformedComposition();
|
||||||
if (npcComposition == null || !npcComposition.isInteractible()
|
if (npcComposition == null || !npcComposition.isInteractible()
|
||||||
|| (actor.isDead() && !config.highlightDeadNpcs()))
|
|| (actor.isDead() && config.ignoreDeadNpcs()))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ public class NpcSceneOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
NPCComposition npcComposition = actor.getTransformedComposition();
|
NPCComposition npcComposition = actor.getTransformedComposition();
|
||||||
if (npcComposition == null || !npcComposition.isInteractible()
|
if (npcComposition == null || !npcComposition.isInteractible()
|
||||||
|| (actor.isDead() && !config.highlightDeadNpcs()))
|
|| (actor.isDead() && config.ignoreDeadNpcs()))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user