- added ability for spell ids to be specified instead of names for custom bars and cooldown bars. when an id is typed it will attempt to resolve to the buff name

This commit is contained in:
Parnic
2010-10-11 05:42:37 +00:00
parent bf59e26ce1
commit 4e1c8ecf12
2 changed files with 14 additions and 0 deletions

View File

@ -187,6 +187,13 @@ function IceCustomCDBar.prototype:GetOptions()
return self.moduleSettings.cooldownToTrack
end,
set = function(info, v)
local orig = v
if tonumber(v) ~= nil then
v = GetSpellInfo(tonumber(v))
end
if v == nil then
v = orig
end
if self.moduleSettings.cooldownToTrack == self.moduleSettings.upperText then
self.moduleSettings.upperText = v
end