From c3e499ac874d6f0660ca2e10f4000ffe37d0bddc Mon Sep 17 00:00:00 2001 From: Crum Date: Thu, 10 May 2018 19:09:52 -0500 Subject: [PATCH] update BarShapeShift --- ElvUI/Core/Movers.lua | 12 ++++++------ ElvUI/Modules/ActionBars/BarShapeShift.lua | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ElvUI/Core/Movers.lua b/ElvUI/Core/Movers.lua index f9b742d..ae442aa 100644 --- a/ElvUI/Core/Movers.lua +++ b/ElvUI/Core/Movers.lua @@ -25,13 +25,13 @@ local function GetPoint(obj) end local function UpdateCoords(self) - local mover = self.child; - local x, y, _, nudgePoint, nudgeInversePoint = E:CalculateMoverPoints(mover); + local mover = self.child or self + local x, y, _, nudgePoint, nudgeInversePoint = E:CalculateMoverPoints(mover) - local coordX, coordY = E:GetXYOffset(nudgeInversePoint, 1); - ElvUIMoverNudgeWindow:ClearAllPoints(); - ElvUIMoverNudgeWindow:SetPoint(nudgePoint, mover, nudgeInversePoint, coordX, coordY); - E:UpdateNudgeFrame(mover, x, y); + local coordX, coordY = E:GetXYOffset(nudgeInversePoint, 1) + ElvUIMoverNudgeWindow:ClearAllPoints() + ElvUIMoverNudgeWindow:SetPoint(nudgePoint, mover, nudgeInversePoint, coordX, coordY) + E:UpdateNudgeFrame(mover, x, y) end local isDragging = false diff --git a/ElvUI/Modules/ActionBars/BarShapeShift.lua b/ElvUI/Modules/ActionBars/BarShapeShift.lua index bf134fb..9f40794 100644 --- a/ElvUI/Modules/ActionBars/BarShapeShift.lua +++ b/ElvUI/Modules/ActionBars/BarShapeShift.lua @@ -49,7 +49,6 @@ function AB:StyleShapeShift() if self.db.barShapeShift.style == "darkenInactive" then if name then texture = texture - -- texture = GetSpellTexture(name, BOOKTYPE_SPELL) end end