hook for unitframes
Darthpred [07-24-14 - 20:17]
diff --git a/ElvUI_SLE/modules/unitframes.lua b/ElvUI_SLE/modules/unitframes.lua
index ce77107..ccf654b 100644
--- a/ElvUI_SLE/modules/unitframes.lua
+++ b/ElvUI_SLE/modules/unitframes.lua
@@ -242,11 +242,7 @@ local function DFTextSLE()
end
end
-
-UF.UpdatePlayerFrameAnchorsSLE = UF.UpdatePlayerFrameAnchors
-function UF:UpdatePlayerFrameAnchors(frame, isShown)
- UF:UpdatePlayerFrameAnchorsSLE(frame, isShown)
-
+local function PlayerFrameAnchors()
if E.myclass == "DRUID" then
EclipseTextSLE()
elseif E.myclass == "WARLOCK" then
@@ -254,6 +250,8 @@ function UF:UpdatePlayerFrameAnchors(frame, isShown)
end
end
+hooksecurefunc(UF, "UpdatePlayerFrameAnchors", PlayerFrameAnchors)
+
function UF:ClassbarTextSLE()
if E.myclass == "DRUID" then
EclipseTextSLE()