From 676074fbb04d9569511e168cf378801b4e770f03 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 25 Jul 2014 00:17:09 +0400 Subject: [PATCH] hook for unitframes --- ElvUI_SLE/modules/unitframes.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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() -- 1.7.9.5