- added an option to allow modules to hide the animation options in the configuration panel

- made SnD hide the animation options so that people can't break the bar by enabling animation
This commit is contained in:
Parnic
2009-04-25 23:20:00 +00:00
parent b4fe009e8e
commit 857f2388ee
2 changed files with 3 additions and 1 deletions

View File

@ -211,7 +211,7 @@ function IceBarElement.prototype:GetOptions()
end, end,
order = 29 order = 29
} }
if not self.moduleSettings.hideAnimationSettings then
opts["headerAnimation"] = { opts["headerAnimation"] = {
type = 'header', type = 'header',
name = 'Animation settings', name = 'Animation settings',
@ -254,6 +254,7 @@ function IceBarElement.prototype:GetOptions()
end, end,
order = 112 order = 112
} }
end
opts["widthModifier"] = opts["widthModifier"] =
{ {

View File

@ -82,6 +82,7 @@ function SliceAndDice.prototype:GetDefaultSettings()
settings["lockLowerFontAlpha"] = false settings["lockLowerFontAlpha"] = false
settings["lowerTextString"] = "" settings["lowerTextString"] = ""
settings["lowerTextVisible"] = false settings["lowerTextVisible"] = false
settings["hideAnimationSettings"] = true
return settings return settings
end end