Untitled diff
47 lines
local L = Grid2Options.L
local L = Grid2Options.L
Grid2Options:RegisterStatusOptions("lowmana", "mana", Grid2Options.MakeStatusColorThresholdOptions, {
Grid2Options:RegisterStatusOptions("lowmana", "mana", Grid2Options.MakeStatusColorThresholdOptions, {
titleIcon = "Interface\\Icons\\Inv_potion_86"
titleIcon = "Interface\\Icons\\Inv_potion_86"
})
})
Grid2Options:RegisterStatusOptions("mana","mana", function(self, status, options, optionParams)
Grid2Options:RegisterStatusOptions("mana","mana", function(self, status, options, optionParams)
self:MakeStatusStandardOptions(status, options, optionParams)
self:MakeStatusStandardOptions(status, options, optionParams)
self:MakeHeaderOptions(options, "Display")
self:MakeHeaderOptions(options, "Display")
options.showOnlyHealers = {
options.showOnlyHealers = {
type = "toggle",
type = "toggle",
order = 200,
order = 200,
width= "full",
width= "full",
name = L["Hide mana of non healer players"],
name = L["Hide mana of non healer players"],
tristate = false,
tristate = false,
get = function () return status.dbx.showOnlyHealers end,
get = function () return status.dbx.showOnlyHealers end,
set = function (_, v)
set = function (_, v)
status.dbx.showOnlyHealers = v or nil
status.dbx.showOnlyHealers = v or nil
status:UpdateDB()
status:UpdateDB()
status:UpdateAllIndicators()
status:UpdateAllIndicators()
end,
end,
}
}
end, {
end, {
titleIcon = "Interface\\Icons\\Inv_potion_72"
titleIcon = "Interface\\Icons\\Inv_potion_72"
})
})
Grid2Options:RegisterStatusOptions("poweralt", "mana", Grid2Options.MakeStatusColorOptions, {
Grid2Options:RegisterStatusOptions("poweralt", "mana", Grid2Options.MakeStatusColorOptions, {
titleIcon = "Interface\\Icons\\Inv_potion_34"
titleIcon = "Interface\\Icons\\Inv_potion_34"
})
})
Grid2Options:RegisterStatusOptions("power", "mana", Grid2Options.MakeStatusColorOptions, {
Grid2Options:RegisterStatusOptions("power", "mana", Grid2Options.MakeStatusColorOptions, {
color1 = L["Mana"],
color1 = L["Mana"],
colorDesc1 = L["Mana"],
colorDesc1 = L["Mana"],
color2 = L["Rage"],
color2 = L["Rage"],
colorDesc2 = L["Rage"],
colorDesc2 = L["Rage"],
color3 = L["Focus"],
color3 = L["Focus"],
colorDesc3 = L["Focus"],
colorDesc3 = L["Focus"],
color4 = L["Energy"],
color4 = L["Energy"],
colorDesc4 = L["Energy"],
colorDesc4 = L["Energy"],
color5 = L["Runic Power"],
color5 = L["Runic Power"],
colorDesc5 = L["Runic Power"],
colorDesc5 = L["Runic Power"],
color6 = L["Insanity"],
colorDesc6 = L["Insanity"],
color7 = L["Maelstrom"],
colorDesc7 = L["Maelstrom"],
color8 = L["Astral Power"],
colorDesc8 = L["Astral Power"],
color9 = L["Fury"],
colorDesc9 = L["Fury"],
color10 = L["Pain"],
colorDesc10 = L["Pain"],
width = "full",
width = "full",
titleIcon = "Interface\\Icons\\Inv_potion_33"
titleIcon = "Interface\\Icons\\Inv_potion_33"
})
})