Skip to content

Commit

Permalink
unitframes: remove obsolete portrait frame stratas
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Nov 5, 2024
1 parent b4afcbe commit 43d76e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions api/unitframes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,8 @@ function pfUI.uf:UpdateConfig()
fontstyle = C.global.font_unit_style
end

f.portrait:SetFrameStrata("LOW")
f.portrait.tex:SetAllPoints(f.portrait)
f.portrait.tex:SetTexCoord(.1, .9, .1, .9)
f.portrait.model:SetFrameStrata("LOW")
f.portrait.model:SetAllPoints(f.portrait)

if f.config.portrait == "bar" then
Expand All @@ -530,8 +528,6 @@ function pfUI.uf:UpdateConfig()
if f.portrait.backdrop then f.portrait.backdrop:Hide() end

-- place portrait below fonts
f.portrait:SetFrameStrata("BACKGROUND")
f.portrait.model:SetFrameStrata("BACKGROUND")
f.portrait.model:SetFrameLevel(3)

f.portrait:Show()
Expand Down

0 comments on commit 43d76e8

Please sign in to comment.