From 4d792ecf631a4fea3e1eba3a7e08d5ee1c280d42 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 20 Jul 2010 03:36:45 +0000 Subject: [PATCH] - added better explanation of the difference between 'inverse' and 'reverse' in the settings screen - added fixup code to move a user's setting from 'reverse' to 'inverse' since the definition has changed --- IceBarElement.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index d33e984..fff9ee0 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -41,6 +41,18 @@ function IceBarElement.prototype:Enable() self.moduleSettings.myTagVersion = IceHUD.CurrTagVersion end + -- fixup for the new 'invert' option + if not self.moduleSettings.updatedReverseInverse then + self.moduleSettings.updatedReverseInverse = true + + if self.moduleSettings.reverse then + self.moduleSettings.reverse = false + self.moduleSettings.inverse = true + + self:SetBarFramePoints() + end + end + self:RegisterFontStrings() end @@ -171,7 +183,7 @@ function IceBarElement.prototype:GetOptions() { type = 'toggle', name = 'Invert bar', - desc = 'Filling behaviour of bar', + desc = 'Controls which direction the bar fills up. With this checked, the bar will fill opposite from normal (e.g. for health: 0% at the top, 100% at the bottom).', get = function() return self.moduleSettings.inverse end, @@ -190,7 +202,7 @@ function IceBarElement.prototype:GetOptions() { type = 'toggle', name = 'Reverse direction', - desc = 'Direction of bar movement', + desc = "Controls what it means for the bar to be filled. A normal bar will grow larger as the value grows from 0% to 100%. A reversed bar will shrink as the value grows from 0% to 100%.", get = function() return self.moduleSettings.reverse end,