- converted upper/lower text on most bars to use LibDogTag formatting for greater user control

- added Deformat library references in embeds.xml
This commit is contained in:
Parnic
2008-01-21 03:02:51 +00:00
parent 0b6ef43fb5
commit 9b27f345ec
10 changed files with 171 additions and 17 deletions

View File

@ -86,6 +86,63 @@ function CastBar.prototype:GetOptions()
order = 42
}
opts["textSettings"] =
{
type = 'group',
name = '|c' .. self.configColor .. 'Text Settings|r',
desc = 'Settings related to texts',
order = 32,
disabled = function()
return not self.moduleSettings.enabled
end,
args = {
fontsize = {
type = 'range',
name = 'Bar Font Size',
desc = 'Bar Font Size',
get = function()
return self.moduleSettings.barFontSize
end,
set = function(v)
self.moduleSettings.barFontSize = v
self:Redraw()
end,
min = 8,
max = 20,
step = 1,
order = 11
},
lockFontAlpha = {
type = "toggle",
name = "Lock Bar Text Alpha",
desc = "Locks text alpha to 100%",
get = function()
return self.moduleSettings.lockTextAlpha
end,
set = function(v)
self.moduleSettings.lockTextAlpha = v
self:Redraw()
end,
order = 13
},
upperTextVisible = {
type = 'toggle',
name = 'Spell cast text visible',
desc = 'Toggle spell cast text visibility',
get = function()
return self.moduleSettings.textVisible['upper']
end,
set = function(v)
self.moduleSettings.textVisible['upper'] = v
self:Redraw()
end,
order = 14
}
}
}
return opts
end