Refactor progress handling

probably some regressions
This commit is contained in:
NoM0Re
2025-01-22 03:37:10 +01:00
parent a643b275ba
commit 23c7da5ea6
29 changed files with 2037 additions and 1263 deletions
+23
View File
@@ -1469,5 +1469,28 @@ function Private.Modernize(data)
migrateToTable(data.load, "itemequiped")
end
--[[if data.internalVersion < 71 then
if data.regionType == 'icon' or data.regionType == 'aurabar'
or data.regionType == 'progresstexture'
or data.regionType == 'stopmotion'
then
data.progressSource = {-1, ""}
else
data.progressSource = nil
end
if data.subRegions then
for index, subRegionData in ipairs(data.subRegions) do
if subRegionData.type == "subtick" then
local tick_placement = subRegionData.tick_placement
subRegionData.tick_placements = {}
subRegionData.tick_placements[1] = tick_placement
subRegionData.progressSources = {{-2, ""}}
subRegionData.tick_placement = nil
end
end
end
end]]
data.internalVersion = max(data.internalVersion or 0, WeakAuras.InternalVersion())
end