from retail
This commit is contained in:
@@ -3397,7 +3397,7 @@ function GenericTrigger.GetOverlayInfo(data, triggernum)
|
||||
WeakAuras.ActivateAuraEnvironment(nil);
|
||||
local count = 0;
|
||||
for id, state in pairs(allStates) do
|
||||
if (state.additionalProgress) then
|
||||
if (type(state.additionalProgress) == "table") then
|
||||
count = max(count, #state.additionalProgress);
|
||||
end
|
||||
end
|
||||
|
||||
@@ -301,7 +301,7 @@ local barPrototype = {
|
||||
end,
|
||||
|
||||
["UpdateAdditionalBars"] = function(self)
|
||||
if (self.additionalBars) then
|
||||
if (type(self.additionalBars) == "table") then
|
||||
for index, additionalBar in ipairs(self.additionalBars) do
|
||||
if (not self.extraTextures[index]) then
|
||||
local extraTexture = self:CreateTexture(nil, "ARTWORK");
|
||||
@@ -1175,8 +1175,6 @@ local function modify(parent, region, data)
|
||||
end
|
||||
end
|
||||
|
||||
max = max or 0
|
||||
|
||||
local path = state.icon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
local iconPath = (
|
||||
region.useAuto
|
||||
|
||||
@@ -945,7 +945,7 @@ local function ConstructMoverSizer(parent)
|
||||
frame.lineX:SetPoint("BOTTOMLEFT", UIParent, 0, v)
|
||||
frame.lineX:SetPoint("BOTTOMRIGHT", UIParent, 0, v)
|
||||
frame.lineX:Show()
|
||||
mover.alignYFrom = ctrlDown and "CENTER" or (top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM"
|
||||
mover.alignYFrom = (ctrlDown and "CENTER" or (top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM")
|
||||
or (reverse and ((top >= v - 5 and top <= v + 5) and "TOP" or "BOTTOM")) -- top side first
|
||||
or (not reverse and ((bottom >= v - 5 and bottom <= v + 5) and "BOTTOM" or "TOP")) -- bottom side first
|
||||
mover.alignYOf = v
|
||||
|
||||
Reference in New Issue
Block a user