This commit is contained in:
NoM0Re
2025-05-31 22:54:39 +02:00
committed by GitHub
parent 9def6a5ab8
commit bda851552d
58 changed files with 2518 additions and 1671 deletions
+3 -3
View File
@@ -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
+9 -5
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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()