From bb2b90de3e41f7b213b2e37b966a30fd7471f16a Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 6 Dec 2021 02:22:40 +0100 Subject: [PATCH] unitframes-classcolor: keep unit backgrounds --- mods/unitframes-classcolor.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mods/unitframes-classcolor.lua b/mods/unitframes-classcolor.lua index e91f45e..97de046 100644 --- a/mods/unitframes-classcolor.lua +++ b/mods/unitframes-classcolor.lua @@ -30,13 +30,10 @@ module.enable = function(self) local class = RAID_CLASS_COLORS[class] or { r = .5, g = .5, b = .5, a = 1 } TargetFrameNameBackground:SetVertexColor(class.r, class.g, class.b, 1) TargetFrameNameBackground:Show() - TargetFrameBackground:Hide() elseif reaction and reaction > 4 then TargetFrameNameBackground:Hide() - TargetFrameBackground:Show() else TargetFrameNameBackground:Show() - TargetFrameBackground:Hide() end end @@ -50,7 +47,6 @@ module.enable = function(self) PlayerFrameNameBackground:SetHeight(19) PlayerFrameNameBackground:SetPoint("TOPLEFT", 106, -22) PlayerFrameNameBackground:SetVertexColor(class.r, class.g, class.b, 1) - PlayerFrameBackground:Hide() local wait = CreateFrame("Frame") wait:RegisterEvent("PLAYER_ENTERING_WORLD")