From 3fecf7bdf24a9dda1b06f5b129dd7bfc90e689d5 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 21 Nov 2024 01:14:58 +0100 Subject: [PATCH] core: Nameplate sub-widgets should ignore alpha It's a common practice to hide nameplates by adjusting their alpha, but this has adverse effects on blizzard-managed widgets, affecting gameplay in an (usually) accidental way. --- ouf.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ouf.lua b/ouf.lua index e1e59317..e048f4f6 100644 --- a/ouf.lua +++ b/ouf.lua @@ -834,11 +834,13 @@ function oUF:SpawnNamePlates(namePrefix, nameplateCallback, nameplateCVars) if(nameplate.UnitFrame) then if(nameplate.UnitFrame.WidgetContainer) then nameplate.UnitFrame.WidgetContainer:SetParent(nameplate.unitFrame) + nameplate.UnitFrame.WidgetContainer:SetIgnoreParentAlpha(true) nameplate.unitFrame.WidgetContainer = nameplate.UnitFrame.WidgetContainer end if(nameplate.UnitFrame.SoftTargetFrame) then nameplate.UnitFrame.SoftTargetFrame:SetParent(nameplate.unitFrame) + nameplate.UnitFrame.SoftTargetFrame:SetIgnoreParentAlpha(true) nameplate.unitFrame.SoftTargetFrame = nameplate.UnitFrame.SoftTargetFrame end end