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
+7 -13
View File
@@ -288,7 +288,7 @@ local function createOptions(id, data)
name = L["Animation Start"],
min = 0,
max = 1,
--bigStep = 0.01,
bigStep = 0.01,
order = 13,
isPercent = true
},
@@ -299,7 +299,7 @@ local function createOptions(id, data)
name = L["Animation End"],
min = 0,
max = 1,
--bigStep = 0.01,
bigStep = 0.01,
order = 14,
isPercent = true
},
@@ -534,17 +534,11 @@ local function createOptions(id, data)
}
};
if OptionsPrivate.commonOptions then
return {
stopmotion = options,
position = OptionsPrivate.commonOptions.PositionOptions(id, data, 2),
};
else
return {
stopmotion = options,
position = WeakAuras.PositionOptions(id, data, 2),
};
end
return {
stopmotion = options,
progressOptions = OptionsPrivate.commonOptions.ProgressOptions(data),
position = OptionsPrivate.commonOptions.PositionOptions(id, data, 2),
}
end
local function createThumbnail()