From 921fff3d6753e45d236d45f180ea7ab19c853e62 Mon Sep 17 00:00:00 2001 From: d87 Date: Thu, 24 Jun 2021 15:36:52 +0700 Subject: [PATCH] Debuff Tooltip modifier settings --- Options/GlobalSettings.lua | 43 +++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/Options/GlobalSettings.lua b/Options/GlobalSettings.lua index 8ef2d88..3ff2347 100644 --- a/Options/GlobalSettings.lua +++ b/Options/GlobalSettings.lua @@ -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, @@ -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",