5.19.10
This commit is contained in:
@@ -326,7 +326,7 @@ local sorters = {
|
||||
end,
|
||||
custom = function(data)
|
||||
local sortStr = data.customSort or ""
|
||||
local sortFunc = WeakAuras.LoadFunction("return " .. sortStr) or noop
|
||||
local sortFunc = WeakAuras.LoadFunction("return " .. sortStr, data.id) or noop
|
||||
local sortOn = nil
|
||||
local events = WeakAuras.split(data.sortOn or "")
|
||||
if #events > 0 then
|
||||
@@ -415,7 +415,7 @@ local anchorers = {
|
||||
end,
|
||||
["CUSTOM"] = function(data)
|
||||
local anchorStr = data.customAnchorPerUnit or ""
|
||||
local anchorFunc = WeakAuras.LoadFunction("return " .. anchorStr) or noop
|
||||
local anchorFunc = WeakAuras.LoadFunction("return " .. anchorStr, data.id) or noop
|
||||
|
||||
local anchorOn = nil
|
||||
local events = WeakAuras.split(data.anchorOn or "")
|
||||
@@ -971,7 +971,7 @@ local growers = {
|
||||
end,
|
||||
CUSTOM = function(data)
|
||||
local growStr = data.customGrow or ""
|
||||
local growFunc = WeakAuras.LoadFunction("return " .. growStr) or noop
|
||||
local growFunc = WeakAuras.LoadFunction("return " .. growStr, data.id) or noop
|
||||
local growOn = nil
|
||||
local events = WeakAuras.split(data.growOn or "")
|
||||
if #events > 0 then
|
||||
|
||||
@@ -479,13 +479,17 @@ local function modify(parent, region, data)
|
||||
-- If cooldown.inverse == false then effectiveReverse = not inverse
|
||||
-- If cooldown.inverse == true then effectiveReverse = inverse
|
||||
local effectiveReverse = not region.inverseDirection == not cooldown.inverse
|
||||
cooldown:SetReverse(effectiveReverse)
|
||||
local hasChanged = cooldown:GetReverse() ~= effectiveReverse
|
||||
if hasChanged then
|
||||
cooldown:SetReverse(effectiveReverse)
|
||||
end
|
||||
if (cooldown.expirationTime and cooldown.duration and cooldown:IsShown()) then
|
||||
-- WORKAROUND SetReverse not applying until next frame
|
||||
cooldown:SetCooldown(0, 0)
|
||||
if hasChanged then
|
||||
-- WORKAROUND SetReverse not applying until next frame
|
||||
cooldown:SetCooldown(0, 0)
|
||||
end
|
||||
cooldown:SetCooldown(cooldown.expirationTime - cooldown.duration,
|
||||
cooldown.duration,
|
||||
cooldown.useCooldownModRate and cooldown.modRate or nil)
|
||||
cooldown.duration)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -819,7 +819,7 @@ function Private.regionPrototype.modify(parent, region, data)
|
||||
region:SetOffsetAnim(0, 0);
|
||||
|
||||
if data.anchorFrameType == "CUSTOM" and data.customAnchor then
|
||||
region.customAnchorFunc = WeakAuras.LoadFunction("return " .. data.customAnchor)
|
||||
region.customAnchorFunc = WeakAuras.LoadFunction("return " .. data.customAnchor, data.id)
|
||||
else
|
||||
region.customAnchorFunc = nil
|
||||
end
|
||||
|
||||
@@ -223,7 +223,7 @@ local function modify(parent, region, data)
|
||||
|
||||
local customTextFunc = nil
|
||||
if containsCustomText and data.customText and data.customText ~= "" then
|
||||
customTextFunc = WeakAuras.LoadFunction("return "..data.customText)
|
||||
customTextFunc = WeakAuras.LoadFunction("return "..data.customText, data.id)
|
||||
end
|
||||
|
||||
function region:ConfigureTextUpdate()
|
||||
|
||||
Reference in New Issue
Block a user