from retail

This commit is contained in:
NoM0Re
2025-01-05 16:59:33 +01:00
parent 8375cfa0a7
commit 40dcae7bcf
40 changed files with 54 additions and 120 deletions
+2 -16
View File
@@ -50,8 +50,6 @@ local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras;
local L = WeakAuras.L;
local debug = false;
local function addSpace(args, order)
args["space" .. order] = {
type = "description",
@@ -64,18 +62,6 @@ local function addSpace(args, order)
return order;
end
local function addHalfSpace(args, order)
args["space" .. order] = {
type = "description",
name = "",
image = function() return "", 0, 0 end,
order = order,
width = WeakAuras.halfWidth
}
order = order + 1;
return order;
end
local function compareValues(a, b, propertytype)
if (propertytype == "color") then
if (type(a) ~= "table" or type(b) ~= "table") then
@@ -768,7 +754,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
args["condition" .. i .. "value" .. j] = {
type = "toggle",
width = WeakAuras.normalWidth,
name = blueIfNoValue(data, conditions[i].changes[j], "value", "message_dest_isunit", L["Is Unit"], L["Is Unit"]),
name = blueIfNoValue(data, conditions[i].changes[j], "value", "message_dest_isunit", L["Is Unit"]),
desc = descIfNoValue(data, conditions[i].changes[j], "value", "message_dest_isunit", propertyType),
order = order,
get = function()
@@ -792,7 +778,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
desc = descMessage,
order = order,
get = message_getter,
set = setValueComplex("message", true)
set = setValueComplex("message")
}
order = order + 1;