from retail

This commit is contained in:
NoM0Re
2025-01-23 19:40:40 +01:00
parent e1e0744ecf
commit 4ed4d4159b
15 changed files with 118 additions and 27 deletions
+14 -3
View File
@@ -50,6 +50,8 @@ local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras;
local L = WeakAuras.L;
local SharedMedia = LibStub("LibSharedMedia-3.0");
local function addSpace(args, order)
args["space" .. order] = {
type = "description",
@@ -613,12 +615,21 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
set = setValueColor
}
order = order + 1;
elseif (propertyType == "list" or property == "progressSource") then
elseif (propertyType == "list" or propertyType == "progressSource" or propertyType == "textureLSM") then
local values = property and allProperties.propertyMap[property] and allProperties.propertyMap[property].values;
local dialogControl
if propertyType == "textureLSM" then
dialogControl = "WA_LSM30_StatusbarAtlas"
local statusbarList = {}
WeakAuras.Mixin(statusbarList, SharedMedia:HashTable("statusbar"))
values = statusbarList
end
args["condition" .. i .. "value" .. j] = {
type = "select",
width = WeakAuras.normalWidth,
values = values,
dialogControl = dialogControl,
name = blueIfNoValue(data, conditions[i].changes[j], "value", L["Differences"], ""),
desc = descIfNoValue(data, conditions[i].changes[j], "value", propertyType, values),
order = order,
@@ -663,7 +674,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
return true
end
args["condition" .. i .. "progressSoruceManualValue" .. j] = {
args["condition" .. i .. "progressSourceManualValue" .. j] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
@@ -681,7 +692,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
}
order = order + 1
args["condition" .. i .. "progressSoruceManualTotal" .. j] = {
args["condition" .. i .. "progressSourceManualTotal" .. j] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,