Originally Posted by angeld
Humm yea must be more, CustomCDBar.lua was actually already in modules. and it was already on the nibIceHUD.toc.
|
Hmm, I see. Got some stuff to add to the nibIceHUD_options\Options.lua as well.
Code:
customModuleCreate = {
type = "execute",
name = "Create custom timer",
func = function()
nibIceHUD:CreateCustomModuleAndNotify("Bar")
end,
disabled = function()
return not nibIceHUD.IceCore:IsEnabled()
end,
order = 95,
},
to
Code:
customModuleSelect = {
type = "select",
name ="Create custom module",
desc = "Select a custom module that you want to create here, then press the 'Create' button.",
get = function(info)
return lastCustomModule
end,
set = function(info, v)
lastCustomModule = v
end,
values = nibIceHUD.validCustomModules,
order = 94.5,
},
customModuleCreate = {
type = "execute",
name = "Create",
desc = "Creates the selected custom module",
func = function()
nibIceHUD:CreateCustomModuleAndNotify(lastCustomModule)
end,
disabled = function()
return not nibIceHUD.IceCore:IsEnabled()
end,
order = 94.6,
},
And then remove all Locale (L[" "]) references and the (local L = LibStub("AceLocale-3.0"):GetLocale("nibIceHUD", false)) line from CustomCDBar.lua
Bleh.