- set animation options to be always hidden on cast bars instead of just disabled (had to fill in some dummy strings...shouldn't matter much)

This commit is contained in:
Parnic
2008-02-10 07:12:24 +00:00
parent 55bf141845
commit 30117d1cfd
2 changed files with 34 additions and 20 deletions

View File

@ -114,16 +114,23 @@ function CastBar.prototype:GetOptions()
opts["shouldAnimate"] = opts["shouldAnimate"] =
{ {
type = 'toggle', type = 'toggle',
name = '|c' .. self.configColor .. 'Animate amount changes|r', name = 's',
desc = 'Whether or not to animate the bar falloffs/gains', desc = 's',
get = function() set = 's',
return self.moduleSettings.shouldAnimate get = 's',
end, hidden = function()
set = function(value) return true
self.moduleSettings.shouldAnimate = value end
self:Redraw() }
end,
disabled = function() opts["desiredLerpTime"] =
{
type = 'toggle',
name = 'd',
desc = 'd',
set = 'd',
get = 'd',
hidden = function()
return true return true
end end
} }

View File

@ -60,16 +60,23 @@ function TargetCast.prototype:GetOptions()
opts["shouldAnimate"] = opts["shouldAnimate"] =
{ {
type = 'toggle', type = 'toggle',
name = '|c' .. self.configColor .. 'Animate amount changes|r', name = 's',
desc = 'Whether or not to animate the bar falloffs/gains', desc = 's',
get = function() set = 's',
return self.moduleSettings.shouldAnimate get = 's',
end, hidden = function()
set = function(value) return true
self.moduleSettings.shouldAnimate = value end
self:Redraw() }
end,
disabled = function() opts["desiredLerpTime"] =
{
type = 'toggle',
name = 'd',
desc = 'd',
set = 'd',
get = 'd',
hidden = function()
return true return true
end end
} }