mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- 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:
@ -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
|
||||||
|
Reference in New Issue
Block a user