From 233438022eb3ce447d4263b51f7dd564b89d92e7 Mon Sep 17 00:00:00 2001 From: Continuity Date: Wed, 4 Sep 2024 11:58:03 +0200 Subject: [PATCH] - use reaction name color for name-only enemy --- Plater.lua | 4 ++-- Plater_ChangeLog.lua | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Plater.lua b/Plater.lua index 4681471a..bc8e91d7 100644 --- a/Plater.lua +++ b/Plater.lua @@ -7273,7 +7273,7 @@ end --if this is an enemy or neutral npc if (plateFrame [MEMBER_REACTION] <= 4) then - local r, g, b, a + local r, g, b, a = UnitSelectionColor(plateFrame.unitFrame [MEMBER_UNITID]) -- use this as default. --get the quest color if this npcs is a quest npc if (plateFrame [MEMBER_QUEST] and DB_PLATE_CONFIG [plateFrame.unitFrame.ActorType].quest_color_enabled) then @@ -7284,7 +7284,7 @@ end g = g + 0.1 b = b + 0.1 end - else + elseif not r then -- use UnitSelectionColor instead, if available. fallback otherwise r, g, b, a = 1, 1, 0, 1 --neutral if (plateFrame [MEMBER_REACTION] <= 3) then r, g, b, a = 1, .05, .05, 1 diff --git a/Plater_ChangeLog.lua b/Plater_ChangeLog.lua index d42fd200..a2f5a8f0 100644 --- a/Plater_ChangeLog.lua +++ b/Plater_ChangeLog.lua @@ -8,6 +8,7 @@ function Plater.GetChangelogTable() if (not Plater.ChangeLogTable) then Plater.ChangeLogTable = { + {1725050765, "Backend Change", "Nov 4th, 2024", "Use reaction name coloring for 'name only' enemy NPCs instead of fixed color.", "cont1nuity"}, {1725050765, "Backend Change", "Aug 31st, 2024", "Glow API documentation.", "cont1nuity"}, {1725050765, "Bug Fix", "Aug 30th, 2024", "Fixing issue with unit trigger tooltips not showing on entries as name.", "cont1nuity"}, {1725050765, "New Feature", "Aug 30th, 2024", "Consolidating option to rename casts based on DMB or BigWigs renamed spells.", "cont1nuity"},