Multientry (#7)

* from retail

* from retail

* from retail

* from retail

* from retail

* from retail

* remove new threat functions as they are not well implemented for now
This commit is contained in:
NoM0Re
2024-11-27 12:09:02 +01:00
committed by GitHub
parent eb8221cf89
commit 13f734038d
67 changed files with 3493 additions and 969 deletions
+11 -2
View File
@@ -458,6 +458,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
local properties = allProperties.propertyMap[property];
if (properties.min or properties.softMin) and (properties.max or properties.softMax) then
args["condition" .. i .. "value" .. j].type = "range";
args["condition" .. i .. "value" .. j].control = "WeakAurasSpinBox"
args["condition" .. i .. "value" .. j].min = properties.min;
args["condition" .. i .. "value" .. j].softMin = properties.softMin;
args["condition" .. i .. "value" .. j].max = properties.max;
@@ -571,6 +572,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
type = "select",
width = WeakAuras.normalWidth,
values = OptionsPrivate.Private.sound_types,
sorting = OptionsPrivate.Private.SortOrderForValues(OptionsPrivate.Private.sound_types),
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "sound", L["Differences"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "sound", propertyType, OptionsPrivate.Private.sound_types),
order = order,
@@ -578,7 +580,6 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
return type(conditions[i].changes[j].value) == "table" and conditions[i].changes[j].value.sound;
end,
set = wrapWithPlaySound(setValueComplex("sound")),
control = "WeakAurasSortedDropdown",
hidden = function() return not (anySoundType("Play") or anySoundType("Loop")) end
}
order = order + 1;
@@ -600,6 +601,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
args["condition" .. i .. "value" .. j .. "sound_repeat"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
min = 0,
softMax = 60,
@@ -674,6 +676,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
type = "select",
width = WeakAuras.normalWidth,
values = OptionsPrivate.Private.send_chat_message_types,
sorting = OptionsPrivate.Private.SortOrderForValues(OptionsPrivate.Private.send_chat_message_types),
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "message_type", L["Differences"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "message_type", propertyType, OptionsPrivate.Private.send_chat_message_types),
order = order,
@@ -681,7 +684,6 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
return type(conditions[i].changes[j].value) == "table" and conditions[i].changes[j].value.message_type;
end,
set = setValueComplex("message_type"),
control = "WeakAurasSortedDropdown"
}
order = order + 1;
@@ -1148,6 +1150,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_lines"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_lines", L["Lines & Particles"], L["Lines & Particles"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_lines", propertyType),
@@ -1166,6 +1169,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_frequency"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_frequency", L["Frequency"], L["Frequency"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_frequency", propertyType),
@@ -1184,6 +1188,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_length"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_length", L["Length"], L["Length"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_length", propertyType),
@@ -1202,6 +1207,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_thickness"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_thickness", L["Thickness"], L["Thickness"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_thickness", propertyType),
@@ -1220,6 +1226,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_XOffset"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_XOffset", L["X-Offset"], L["X-Offset"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_XOffset", propertyType),
@@ -1238,6 +1245,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_YOffset"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_YOffset", L["Y-Offset"], L["Y-Offset"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_YOffset", propertyType),
@@ -1256,6 +1264,7 @@ local function addControlsForChange(args, order, data, conditionVariable, totalA
order = order + 1
args["condition" .. i .. "value" .. j .. "glow_scale"] = {
type = "range",
control = "WeakAurasSpinBox",
width = WeakAuras.normalWidth,
name = blueIfNoValue2(data, conditions[i].changes[j], "value", "glow_scale", L["Scale"], L["Scale"]),
desc = descIfNoValue2(data, conditions[i].changes[j], "value", "glow_scale", propertyType),