- increased maximum horizontal text offsets for all bars

- added 'force justify text' options to the player cast bar like most other bars already had
This commit is contained in:
Parnic
2009-07-08 02:57:43 +00:00
parent 50dcfb6a8c
commit 7fc7a37e56
2 changed files with 21 additions and 4 deletions

View File

@ -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

View File

@ -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,
}
}
}