Skip to content

Commit

Permalink
Debuff Tooltip modifier settings
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Jun 24, 2021
1 parent 5048e47 commit 921fff3
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion Options/GlobalSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function ns.MakeGlobalSettings()
-- order = 10.4,
-- },
disableTooltip = {
name = L"Disable Tooltips",
name = L"Disable Unit Tooltips",
width = "full",
type = "toggle",
get = function(info) return Aptechka.db.global.disableTooltip end,
Expand All @@ -167,6 +167,47 @@ function ns.MakeGlobalSettings()
end,
order = 10.8,
},
switches = {
type = "group",
name = "Debuff Tooltip Modifiers",
guiInline = true,
order = 10.81,
args = {
Ctrl = {
name = "Ctrl",
width = 0.3,
type = "toggle",
get = function(info) return Aptechka.db.global.debuffTooltip_bindCtrl end,
set = function(info, v)
Aptechka.db.global.debuffTooltip_bindCtrl = not Aptechka.db.global.debuffTooltip_bindCtrl
Aptechka.tooltipPool.modchecks:MakeFromDB()
end,
order = 1,
},
Alt = {
name = "Alt",
width = 0.3,
type = "toggle",
get = function(info) return Aptechka.db.global.debuffTooltip_bindAlt end,
set = function(info, v)
Aptechka.db.global.debuffTooltip_bindAlt = not Aptechka.db.global.debuffTooltip_bindAlt
Aptechka.tooltipPool.modchecks:MakeFromDB()
end,
order = 2,
},
Shift = {
name = "Shift",
width = 0.3,
type = "toggle",
get = function(info) return Aptechka.db.global.debuffTooltip_bindShift end,
set = function(info, v)
Aptechka.db.global.debuffTooltip_bindShift = not Aptechka.db.global.debuffTooltip_bindShift
Aptechka.tooltipPool.modchecks:MakeFromDB()
end,
order = 3,
},
}
},
disableAbsorbBar = {
name = L"Disable Absorb Side Bar",
width = "full",
Expand Down

0 comments on commit 921fff3

Please sign in to comment.