Skip to content

Commit

Permalink
Fix Playerframe bug after loading screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-HeinzSchneider committed Dec 6, 2023
1 parent 733f71b commit f16ed1d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Modules/Unitframe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,13 @@ function Module.HookPlayerStatus()
hooksecurefunc('PlayerFrame_UpdateStatus', UpdateStatus)
end

function Module.HookPlayerArt()
hooksecurefunc('PlayerFrame_ToPlayerArt', function()
-- print('PlayerFrame_ToPlayerArt')
Module.ChangePlayerframe()
end)
end

function Module.MovePlayerFrame(anchor, anchorOther, dx, dy)
PlayerFrame:ClearAllPoints()
PlayerFrame:SetPoint(anchor, UIParent, anchorOther, dx, dy)
Expand Down Expand Up @@ -3012,6 +3019,7 @@ function Module.Wrath()
Module.HookVertexColor()
Module.HookEnergyBar()
Module.HookPlayerStatus()
Module.HookPlayerArt()
Module.HookDrag()

Module.ApplyPortraitMask()
Expand Down Expand Up @@ -3040,6 +3048,7 @@ function Module.Era()
Module.HookVertexColor()
Module.HookEnergyBar()
Module.HookPlayerStatus()
Module.HookPlayerArt()
Module.HookDrag()

Module.ApplyPortraitMask()
Expand Down

0 comments on commit f16ed1d

Please sign in to comment.