From e89a2abcada77a92862dcfef75a57935c4a57fa5 Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 4 Feb 2008 14:52:38 +0000 Subject: [PATCH] - added vertical/horizontal text offset options to the castbar --- modules/CastBar.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/modules/CastBar.lua b/modules/CastBar.lua index 3339e7a..aaefa19 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -163,6 +163,44 @@ function CastBar.prototype:GetOptions() self:Redraw() end, order = 14 + }, + + textVerticalOffset = { + type = 'range', + name = '|c' .. self.configColor .. 'Text Vertical Offset|r', + desc = 'Offset of the text from the bar vertically (negative is farther below)', + min = -250, + max = 350, + step = 1, + get = function() + return self.moduleSettings.textVerticalOffset + end, + set = function(v) + self.moduleSettings.textVerticalOffset = v + self:Redraw() + end, + disabled = function() + return not self.moduleSettings.enabled + end + }, + + textHorizontalOffset = { + type = 'range', + name = '|c' .. self.configColor .. 'Text Horizontal Offset|r', + desc = 'Offset of the text from the bar horizontally', + min = -50, + max = 50, + step = 1, + get = function() + return self.moduleSettings.textHorizontalOffset + end, + set = function(v) + self.moduleSettings.textHorizontalOffset = v + self:Redraw() + end, + disabled = function() + return not self.moduleSettings.enabled + end } } }