From 7fc7a37e569201c051763facebfb29f025d88319 Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 8 Jul 2009 02:57:43 +0000 Subject: [PATCH] - increased maximum horizontal text offsets for all bars - added 'force justify text' options to the player cast bar like most other bars already had --- IceBarElement.lua | 4 ++-- modules/CastBar.lua | 21 +++++++++++++++++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index c630af1..bdb8f95 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -503,8 +503,8 @@ end type = 'range', name = '|c' .. self.configColor .. 'Text Horizontal Offset|r', desc = 'Offset of the text from the bar horizontally', - min = -150, - max = 150, + min = -350, + max = 350, step = 1, get = function() return self.moduleSettings.textHorizontalOffset diff --git a/modules/CastBar.lua b/modules/CastBar.lua index b052553..a44d942 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -259,8 +259,8 @@ function CastBar.prototype:GetOptions() type = 'range', name = '|c' .. self.configColor .. 'Text Horizontal Offset|r', desc = 'Offset of the text from the bar horizontally', - min = -50, - max = 50, + min = -350, + max = 350, step = 1, get = function() return self.moduleSettings.textHorizontalOffset @@ -272,6 +272,23 @@ function CastBar.prototype:GetOptions() disabled = function() return not self.moduleSettings.enabled end + }, + + forceJustifyText = { + type = 'text', + name = 'Force Text Justification', + desc = 'This sets the alignment for the text on this bar', + get = function() + return self.moduleSettings.forceJustifyText + end, + set = function(value) + self.moduleSettings.forceJustifyText = value + self:Redraw() + end, + validate = { NONE = "None", LEFT = "Left", RIGHT = "Right" }, + disabled = function() + return not self.moduleSettings.enabled + end, } } }