added (un)checkAll button in DR-Categories in Diminishing Module
This commit is contained in:
parent
8a17592842
commit
5da6d1d7c9
@ -702,7 +702,7 @@ end
|
||||
|
||||
function Auras:GetInterruptOptions()
|
||||
local options = {
|
||||
ckeckAll = {
|
||||
checkAll = {
|
||||
order = 1,
|
||||
width = "0.7",
|
||||
name = L["Check All"],
|
||||
|
@ -610,7 +610,30 @@ function Diminishings:GetOptions()
|
||||
end
|
||||
|
||||
function Diminishings:CategoryOptions()
|
||||
local categories = {}
|
||||
local categories = {
|
||||
checkAll = {
|
||||
order = 1,
|
||||
width = "0.7",
|
||||
name = L["Check All"],
|
||||
type = "execute",
|
||||
func = function()
|
||||
for k,_ in pairs(defaultCategories()) do
|
||||
Gladdy.db.drCategories[k].enabled = true
|
||||
end
|
||||
end,
|
||||
},
|
||||
uncheckAll = {
|
||||
order = 2,
|
||||
width = "0.7",
|
||||
name = L["Uncheck All"],
|
||||
type = "execute",
|
||||
func = function()
|
||||
for k,_ in pairs(defaultCategories()) do
|
||||
Gladdy.db.drCategories[k].enabled = false
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
local indexList = {}
|
||||
for k,_ in pairs(DRData:GetCategories()) do
|
||||
tinsert(indexList, k)
|
||||
|
Loading…
Reference in New Issue
Block a user