from retail

This commit is contained in:
NoM0Re
2025-01-27 03:28:33 +01:00
parent 0e761a6814
commit 8e07a6495c
32 changed files with 1450 additions and 777 deletions
+36
View File
@@ -1751,6 +1751,42 @@ function Private.Modernize(data, oldSnapshot)
end
end
if data.internalVersion < 81 then
-- Rename 'progressSources' to 'progressSource' for Linear/CircularProgressTexture/StopMotion sub elements
local conversions = {
sublineartexture = {
progressSources = "progressSource",
},
subcirculartexture = {
progressSources = "progressSource",
},
substopmotion = {
progressSources = "progressSource",
}
}
if data.subRegions then
for index, subRegionData in ipairs(data.subRegions) do
if conversions[subRegionData.type] then
for oldKey, newKey in pairs(conversions[subRegionData.type]) do
subRegionData[newKey] = subRegionData[oldKey]
subRegionData[oldKey] = nil
end
end
end
end
end
if data.internalVersion < 82 then
-- noMerge for separator custom option doesn't make sense,
-- and groups achieve the desired effect better,
-- so drop the feature
for _, optionData in ipairs(data.authorOptions) do
if optionData.type == "header" then
optionData.noMerge = nil
end
end
end
data.internalVersion = max(data.internalVersion or 0, WeakAuras.InternalVersion())
end