update BarShapeShift

This commit is contained in:
Crum
2018-05-10 19:09:52 -05:00
parent fd354c6d36
commit c3e499ac87
2 changed files with 6 additions and 7 deletions
+6 -6
View File
@@ -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
@@ -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