from retail

This commit is contained in:
NoM0Re
2025-01-06 19:47:37 +01:00
parent 873748218a
commit 7a185106f2
111 changed files with 359 additions and 195 deletions
+12 -2
View File
@@ -58,7 +58,7 @@
bigStep (optional) -> step size of the slider. Defaults to 0.05
step (optional) -> like bigStep, but applies to number input as well
]]
if not WeakAuras.IsCorrectVersion() or not WeakAuras.IsLibsOK() then return end
if not WeakAuras.IsLibsOK() then return end
local AddonName, OptionsPrivate = ...
local WeakAuras = WeakAuras
@@ -1180,6 +1180,15 @@ typeControlAdders = {
end,
disabled = function() return not option.useCollapse end
}
args[prefix .. "noMerge"] = {
type = "toggle",
name = WeakAuras.newFeatureString .. name(option, "noMerge", L["Prevent Merging"]),
desc = desc(option, "noMerge", L["If checked, then this group will not merge with other group when selecting multiple auras."]),
order = order(),
width = WeakAuras.doubleWidth,
get = get(option, "noMerge"),
set = set(data, option, "noMerge"),
}
if option.groupType ~="simple" then
args[prefix .. "limitType"] = {
type = "select",
@@ -1998,7 +2007,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
while i <= #values or i <= #childValues do
if firstChild then
values[i] = childValues[i][nameSource] or conflictBlue .. L["Entry %i"]:format(i)
elseif childValues[i][nameSource] ~= values[i] then
elseif not childValues[i] or childValues[i][nameSource] ~= values[i] then
values[i] = conflictBlue .. L["Entry %i"]:format(i)
end
i = i + 1
@@ -2106,6 +2115,7 @@ local function addUserModeOption(options, args, data, order, prefix, i)
type = "execute",
name = L["Delete Entry"],
order = order(),
confirm = true,
func = function()
for id, optionData in pairs(option.references) do
local childOption = optionData.options[optionData.index]