From e2cc2f2f82b3121027a1255c130db485f6107007 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 6 Dec 2021 03:02:43 +0100 Subject: [PATCH] unitframes-classcolor: keep name background above --- mods/unitframes-classcolor.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/unitframes-classcolor.lua b/mods/unitframes-classcolor.lua index 97de046..5993d53 100644 --- a/mods/unitframes-classcolor.lua +++ b/mods/unitframes-classcolor.lua @@ -55,6 +55,10 @@ module.enable = function(self) local class = RAID_CLASS_COLORS[class] or { r = .5, g = .5, b = .5, a = 1 } PlayerFrameNameBackground:SetVertexColor(class.r, class.g, class.b, 1) this:UnregisterAllEvents() + + -- make sure to keep name background above frame shadow + PlayerFrameNameBackground:SetDrawLayer("BORDER") + TargetFrameNameBackground:SetDrawLayer("BORDER") end) -- add font outline