from retail
This commit is contained in:
@@ -45,12 +45,7 @@ local function moveOnePxl(direction)
|
||||
WeakAuras.Add(data, nil, true)
|
||||
WeakAuras.UpdateThumbnail(data)
|
||||
OptionsPrivate.ResetMoverSizer()
|
||||
if data.parent then
|
||||
local parentData = WeakAuras.GetData(data.parent)
|
||||
if parentData then
|
||||
WeakAuras.Add(parentData)
|
||||
end
|
||||
end
|
||||
OptionsPrivate.Private.AddParents(data)
|
||||
WeakAuras.FillOptions()
|
||||
end
|
||||
end
|
||||
@@ -382,11 +377,9 @@ local function BuildAlignLines(mover)
|
||||
y = {}
|
||||
}
|
||||
local x, y = {}, {}
|
||||
local skipIds = { [data.id] = true }
|
||||
if data.controlledChildren then
|
||||
for _, id in pairs(data.controlledChildren) do
|
||||
skipIds[id] = true
|
||||
end
|
||||
local skipIds = {}
|
||||
for child in OptionsPrivate.Private.TraverseAll(data) do
|
||||
skipIds[child.id] = true
|
||||
end
|
||||
|
||||
for k, v in pairs(WeakAuras.displayButtons) do
|
||||
@@ -400,8 +393,8 @@ local function BuildAlignLines(mover)
|
||||
tinsert(y, (region:GetBottom() or 0) * scale)
|
||||
else
|
||||
local centerX, centerY = region:GetCenter()
|
||||
tinsert(x, centerX or 0 * scale)
|
||||
tinsert(y, centerY or 0 * scale)
|
||||
tinsert(x, (centerX or 0) * scale)
|
||||
tinsert(y, (centerY or 0) * scale)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -657,12 +650,7 @@ local function ConstructMoverSizer(parent)
|
||||
mover:SetHeight(region:GetHeight() * scale)
|
||||
mover:SetPoint(mover.selfPoint, mover.anchor, mover.anchorPoint, xOff * scale, yOff * scale)
|
||||
end
|
||||
if data.parent then
|
||||
local parentData = db.displays[data.parent]
|
||||
if parentData then
|
||||
WeakAuras.Add(parentData)
|
||||
end
|
||||
end
|
||||
OptionsPrivate.Private.AddParents(data)
|
||||
WeakAuras.FillOptions()
|
||||
OptionsPrivate.Private.Animate("display", data.uid, "main", data.animation.main, WeakAuras.regions[data.id].region, false, nil, true)
|
||||
-- hide alignment lines
|
||||
@@ -767,6 +755,7 @@ local function ConstructMoverSizer(parent)
|
||||
|
||||
region:ResetPosition()
|
||||
WeakAuras.Add(data, nil, true)
|
||||
OptionsPrivate.Private.AddParents(data)
|
||||
WeakAuras.UpdateThumbnail(data)
|
||||
|
||||
frame:ScaleCorners(region:GetWidth(), region:GetHeight())
|
||||
|
||||
Reference in New Issue
Block a user