From e3833eb1e25f3ad871f79b2e91b32553dcd2125c Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 10 Oct 2010 00:16:19 +0000 Subject: [PATCH] - hid the "Low Threshold Color" option on custom bars and cooldown bars since the option doesn't apply to them - updated the description of a few "low threshold" settings so they make more sense to users (don't reference variable names) --- IceUnitBar.lua | 6 +++--- modules/CustomBar.lua | 1 + modules/CustomCDBar.lua | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/IceUnitBar.lua b/IceUnitBar.lua index 81d05e2..be30de5 100644 --- a/IceUnitBar.lua +++ b/IceUnitBar.lua @@ -71,7 +71,7 @@ function IceUnitBar.prototype:GetOptions() { type = 'range', name = L["Low Threshold"], - desc = L["Threshold of pulsing the bar (0 means never) (for player applies only to mana, not rage/energy/runic power)"], + desc = L["When the bar drops below this amount, it will start flashing (0 means never). For the 'mana' bar this only applies to mana and not rage/energy/focus/runic power."], get = function() return self.moduleSettings.lowThreshold end, @@ -80,7 +80,7 @@ function IceUnitBar.prototype:GetOptions() self:Redraw() end, disabled = function() - return not self.moduleSettings.enabled + return not self.moduleSettings.enabled or not self.moduleSettings.lowThresholdFlash end, min = 0, max = 1, @@ -107,7 +107,7 @@ function IceUnitBar.prototype:GetOptions() opts["lowThresholdColor"] = { type = "toggle", name = L["Low Threshold color"], - desc = L["Colors the bar minColor when % is < lowThreshold (requires scaleColor to be enabled)"], + desc = L["Changes the color of this bar to be the minimum health or mana color when it's below the low threshold. See the 'MinHealthColor' and 'MinManaColor' colors in the 'Colors' option page.\n\nThis option only applies to health and mana bars."], get = function() return self.moduleSettings.lowThresholdColor end, diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index b43a97b..f2b03d8 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -142,6 +142,7 @@ function IceCustomBar.prototype:GetOptions() opts.textSettings.args.upperTextString.hidden = false opts.textSettings.args.lowerTextString.hidden = false + opts.lowThresholdColor = nil opts["customHeader"] = { type = 'header', diff --git a/modules/CustomCDBar.lua b/modules/CustomCDBar.lua index 5adedbc..e3b6a75 100644 --- a/modules/CustomCDBar.lua +++ b/modules/CustomCDBar.lua @@ -129,6 +129,7 @@ function IceCustomCDBar.prototype:GetOptions() opts.textSettings.args.upperTextString.hidden = false opts.textSettings.args.lowerTextString.hidden = false + opts.lowThresholdColor = nil opts["customHeader"] = { type = 'header',