mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -241,6 +241,13 @@ function IceCustomBar.prototype:GetOptions()
|
||||
return self.moduleSettings.buffToTrack
|
||||
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.buffToTrack == self.moduleSettings.upperText then
|
||||
self.moduleSettings.upperText = v
|
||||
end
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user