Hi.
Your OnAddOnLoaded signature is wrong the way you are using it.
Your either change the signature to:
Code:
function TheDeeps.OnAddOnLoaded(event, addonName)
or change the way it is called:
Code:
EVENT_MANAGER:RegisterForEvent(TheDeeps.name, EVENT_ADD_ON_LOADED, function (...) TheDeeps:OnAddOnLoaded(...) end)
Which is the same as:
Code:
EVENT_MANAGER:RegisterForEvent(TheDeeps.name, EVENT_ADD_ON_LOADED, function (...) TheDeeps.OnAddOnLoaded(TheDeeps, ...) end)
That's the way the colon works in Lua. It saves you from writing the "instance" (TheDeeps) twice. And adds an implicit parameter "self".