Refactor progress handling
probably some regressions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user