unitframes-classcolor: keep name background above

This commit is contained in:
shagu
2021-12-06 03:02:43 +01:00
parent 09c57097a6
commit e2cc2f2f82
+4
View File
@@ -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