- added the ability to duplicate an existing custom bar

This commit is contained in:
Parnic
2010-09-26 00:31:12 +00:00
parent 056fdd6d22
commit 4bf79adda5
7 changed files with 85 additions and 27 deletions

View File

@ -161,6 +161,16 @@ function IceCustomBar.prototype:GetOptions()
order = 20.1,
}
opts["duplicateme"] = {
type = 'execute',
name = 'Duplicate me',
desc = 'Creates a new module of this same type and with all the same settings.',
func = function()
IceHUD:CreateCustomModuleAndNotify(self.moduleSettings.customBarType, self.moduleSettings)
end,
order = 20.2,
}
opts["name"] = {
type = 'input',
name = 'Bar name',