Skip to content

Commit

Permalink
- use reaction name color for name-only enemy
Browse files Browse the repository at this point in the history
  • Loading branch information
cont1nuity committed Sep 4, 2024
1 parent 3c013b8 commit 2334380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions Plater_ChangeLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 2334380

Please sign in to comment.