Commit c7465f8f authored by Simpy's avatar Simpy 🐹

more threat and cutaway into the general subtab group

parent 48ba0069
......@@ -4396,7 +4396,7 @@ E.Options.args.nameplate = {
desc = L["Clamp nameplates to the top of the screen when outside of view."],
},
plateVisibility = {
order = 51,
order = 50,
type = "group",
childGroups = "tabs",
name = L["Visibility"],
......@@ -4488,7 +4488,7 @@ E.Options.args.nameplate = {
}
},
clickThrough = {
order = 54,
order = 51,
type = "group",
childGroups = "tabs",
name = L["Click Through"],
......@@ -4515,7 +4515,7 @@ E.Options.args.nameplate = {
},
},
clickableRange = {
order = 53,
order = 52,
type = "group",
childGroups = "tabs",
name = L["Clickable Range"],
......@@ -4594,6 +4594,89 @@ E.Options.args.nameplate = {
},
},
},
threatGroup = {
order = 53,
type = "group",
name = L["Threat"],
childGroups = "tabs",
get = function(info) return E.db.nameplates.threat[info[#info]] end,
set = function(info, value) E.db.nameplates.threat[info[#info]] = value; NP:ConfigureAll() end,
args = {
enable = {
order = 0,
type = "toggle",
name = L["Enable"],
},
useThreatColor = {
order = 1,
type = "toggle",
name = L["Use Threat Color"],
},
beingTankedByTank = {
name = L["Color Tanked"],
desc = L["Use Tanked Color when a nameplate is being effectively tanked by another tank."],
order = 2,
type = "toggle",
disabled = function() return not E.db.nameplates.threat.useThreatColor end,
},
indicator = {
name = L["Show Icon"],
order = 3,
type = 'toggle',
disabled = function() return not E.db.nameplates.threat.enable end,
},
goodScale = {
name = L["Good Scale"],
order = 4,
type = 'range',
isPercent = true,
min = 0.5, max = 1.5, softMin = .75, softMax = 1.25, step = 0.01,
disabled = function() return not E.db.nameplates.threat.enable end,
},
badScale = {
name = L["Bad Scale"],
order = 6,
type = 'range',
isPercent = true,
min = 0.5, max = 1.5, softMin = .75, softMax = 1.25, step = 0.01,
disabled = function() return not E.db.nameplates.threat.enable end,
},
},
},
cutawayHealth = {
order = 54,
type = 'group',
childGroups = "tabs",
name = L["Cutaway Health"],
disabled = function() return true end,
args = {
enabled = {
type = 'toggle',
order = 1,
name = L["Enable"],
get = function(info) return E.db.nameplates.cutawayHealth end,
set = function(info, value) E.db.nameplates.cutawayHealth = value; end,
},
healthLength = {
type = 'range',
order = 2,
name = L["Health Length"],
desc = L["How much time before the CutawayHealth starts to fade."],
min = 0.1, max = 1, step = 0.1,
get = function(info) return E.db.nameplates.cutawayHealthLength end,
set = function(info, value) E.db.nameplates.cutawayHealthLength = value; end,
},
healthFadeOutTime = {
type = 'range',
order = 3,
name = L["Fade Out"],
desc = L["How long the CutawayHealth will take to fade out."],
min = 0.1, max = 1, step = 0.1,
get = function(info) return E.db.nameplates.cutawayHealthFadeOutTime end,
set = function(info, value) E.db.nameplates.cutawayHealthFadeOutTime = value; end,
},
},
},
},
},
colorsGroup ={
......@@ -5025,87 +5108,6 @@ E.Options.args.nameplate = {
},
},
},
threatGroup = {
order = 150,
type = "group",
name = L["Threat"],
get = function(info) return E.db.nameplates.threat[info[#info]] end,
set = function(info, value) E.db.nameplates.threat[info[#info]] = value; NP:ConfigureAll() end,
args = {
enable = {
order = 0,
type = "toggle",
name = L["Enable"],
},
useThreatColor = {
order = 1,
type = "toggle",
name = L["Use Threat Color"],
},
beingTankedByTank = {
name = L["Color Tanked"],
desc = L["Use Tanked Color when a nameplate is being effectively tanked by another tank."],
order = 2,
type = "toggle",
disabled = function() return not E.db.nameplates.threat.useThreatColor end,
},
indicator = {
name = L["Show Icon"],
order = 3,
type = 'toggle',
disabled = function() return not E.db.nameplates.threat.enable end,
},
goodScale = {
name = L["Good Scale"],
order = 4,
type = 'range',
isPercent = true,
min = 0.5, max = 1.5, softMin = .75, softMax = 1.25, step = 0.01,
disabled = function() return not E.db.nameplates.threat.enable end,
},
badScale = {
name = L["Bad Scale"],
order = 6,
type = 'range',
isPercent = true,
min = 0.5, max = 1.5, softMin = .75, softMax = 1.25, step = 0.01,
disabled = function() return not E.db.nameplates.threat.enable end,
},
},
},
cutawayHealth = {
order = 226,
name = L["Cutaway Health"],
type = 'group',
disabled = function() return true end,
args = {
enabled = {
type = 'toggle',
order = 1,
name = L["Enable"],
get = function(info) return E.db.nameplates.cutawayHealth end,
set = function(info, value) E.db.nameplates.cutawayHealth = value; end,
},
healthLength = {
type = 'range',
order = 2,
name = L["Health Length"],
desc = L["How much time before the CutawayHealth starts to fade."],
min = 0.1, max = 1, step = 0.1,
get = function(info) return E.db.nameplates.cutawayHealthLength end,
set = function(info, value) E.db.nameplates.cutawayHealthLength = value; end,
},
healthFadeOutTime = {
type = 'range',
order = 3,
name = L["Fade Out"],
desc = L["How long the CutawayHealth will take to fade out."],
min = 0.1, max = 1, step = 0.1,
get = function(info) return E.db.nameplates.cutawayHealthFadeOutTime end,
set = function(info, value) E.db.nameplates.cutawayHealthFadeOutTime = value; end,
},
},
},
},
},
filters = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment