Skip to content

Commit

Permalink
core: Nameplate sub-widgets should ignore alpha (#699)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
p3lim authored Nov 30, 2024
1 parent 68da3d8 commit 8f1f37c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ouf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f1f37c

Please sign in to comment.