- made sure that "lower text" and "upper text" configuration options are not present if a given module cannot use dogtags

This commit is contained in:
Parnic
2008-12-02 06:29:55 +00:00
parent 6b7a118ada
commit f2b2d8d78d

View File

@ -365,7 +365,7 @@ function IceBarElement.prototype:GetOptions()
name = 'Upper Text', name = 'Upper Text',
desc = 'The upper text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info', desc = 'The upper text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info',
hidden = function() hidden = function()
return DogTag == nil return DogTag == nil or not self.moduleSettings.usesDogTagStrings
end, end,
get = function() get = function()
return self.moduleSettings.upperText return self.moduleSettings.upperText
@ -387,7 +387,7 @@ function IceBarElement.prototype:GetOptions()
name = 'Lower Text', name = 'Lower Text',
desc = 'The lower text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info', desc = 'The lower text to display under this bar (accepts LibDogTag formatting)\n\nSee http://www.wowace.com/wiki/LibDogTag-2.0/ or type /dogtag for tag info',
hidden = function() hidden = function()
return DogTag == nil return DogTag == nil or not self.moduleSettings.usesDogTagStrings
end, end,
get = function() get = function()
return self.moduleSettings.lowerText return self.moduleSettings.lowerText