mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- 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:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user