From 286130be1fe9144a5f8a0da6ab9f2d5e51a1cf7d Mon Sep 17 00:00:00 2001 From: Treeston Date: Sun, 20 Feb 2022 20:33:54 +0100 Subject: [PATCH] add config option to disable gouge mode (i completely forgot to add it) --- plugins/Details_TinyThreat/Details_TinyThreat.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.lua b/plugins/Details_TinyThreat/Details_TinyThreat.lua index 9bec0bc0..f9aed6cd 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.lua +++ b/plugins/Details_TinyThreat/Details_TinyThreat.lua @@ -749,6 +749,13 @@ local build_options_panel = function() desc = "If this is disabled, you see weighted threat percentages – aggro switches at 100%.\nIf this is enabled, you see absolute threat percentages – aggro switches at 110% in melee, and 130% at range.", name = "Display absolute threat", }, + { + type = "toggle", + get = function() return not ThreatMeter.saveddata.disable_gouge end, + set = function(self, fixedparam, value) ThreatMeter.saveddata.disable_gouge = not value end, + desc = "If this is enabled, certain bosses will show an additional threat threshold at 90.9% of the off-tank's threat. Any player above this threshold might be targeted after the Main Tank is incapacitated.", + name = "Enable Gouge mode", + }, --[=[ @@ -764,7 +771,8 @@ local build_options_panel = function() } - _detalhes.gump:BuildMenu (options_frame, menu, 15, -35, 360) + _detalhes.gump:BuildMenu (options_frame, menu, 15, -35, 160) + options_frame:SetHeight(160) end