- added protection against giving a custom bar/cooldown/counter an empty name causing it to disappear from the options list

This commit is contained in:
Parnic
2010-03-30 23:34:09 +00:00
parent 149dfdb305
commit 014fc5fa18
3 changed files with 9 additions and 3 deletions

View File

@ -105,7 +105,9 @@ function IceCustomBar.prototype:GetOptions()
return self.elementName
end,
set = function(v)
if v~= "" then
IceHUD.IceCore:RenameDynamicModule(self, v)
end
end,
disabled = function()
return not self.moduleSettings.enabled

View File

@ -96,7 +96,9 @@ function IceCustomCDBar.prototype:GetOptions()
return self.elementName
end,
set = function(v)
if v ~= "" then
IceHUD.IceCore:RenameDynamicModule(self, v)
end
end,
disabled = function()
return not self.moduleSettings.enabled

View File

@ -47,7 +47,9 @@ function IceCustomCount.prototype:GetOptions()
return self.elementName
end,
set = function(v)
if v ~= "" then
IceHUD.IceCore:RenameDynamicModule(self, v)
end
end,
disabled = function()
return not self.moduleSettings.enabled