from retail

This commit is contained in:
Bunny67
2022-05-19 22:04:17 +03:00
parent 9465daedd8
commit e7e789686a
86 changed files with 9118 additions and 5486 deletions
+5 -21
View File
@@ -19,26 +19,6 @@ local function createOptions(parentData, data, index, subIndex)
local options = {
__title = L["Glow %s"]:format(subIndex),
__order = 1,
__up = function()
if (OptionsPrivate.Private.ApplyToDataOrChildData(parentData, OptionsPrivate.MoveSubRegionUp, index, "subglow")) then
WeakAuras.ClearAndUpdateOptions(parentData.id)
end
end,
__down = function()
if (OptionsPrivate.Private.ApplyToDataOrChildData(parentData, OptionsPrivate.MoveSubRegionDown, index, "subglow")) then
WeakAuras.ClearAndUpdateOptions(parentData.id)
end
end,
__duplicate = function()
if (OptionsPrivate.Private.ApplyToDataOrChildData(parentData, OptionsPrivate.DuplicateSubRegion, index, "subglow")) then
WeakAuras.ClearAndUpdateOptions(parentData.id)
end
end,
__delete = function()
if (OptionsPrivate.Private.ApplyToDataOrChildData(parentData, WeakAuras.DeleteSubRegion, index, "subglow")) then
WeakAuras.ClearAndUpdateOptions(parentData.id)
end
end,
glow = {
type = "toggle",
width = WeakAuras.normalWidth,
@@ -138,6 +118,7 @@ local function createOptions(parentData, data, index, subIndex)
},
glowColor = {
type = "color",
hasAlpha = true,
width = WeakAuras.normalWidth,
name = L["Custom Color"],
order = 7,
@@ -251,7 +232,7 @@ local function createOptions(parentData, data, index, subIndex)
hidden = function() return hiddenGlowExtra() or data.glowType ~= "Pixel" end,
},
glow_anchor = {
glow_expand_anchor = {
type = "description",
name = "",
order = 20,
@@ -262,6 +243,9 @@ local function createOptions(parentData, data, index, subIndex)
}
}
}
OptionsPrivate.AddUpDownDeleteDuplicate(options, parentData, index, "subglow")
return options
end