All addons loaded are nil
So, everything is working fine as far as my other addons go. This is my first time trying to write an addon and I'm trying to d("hello world") withing my EVENT_ADD_ON_LOADED callback. I had the if addonName == MyAddon.name then d("hello world") but it never fired. Other things fired at other places so I eventually removed the if statement. Turns out every addonName is just nil when passed into this callback. I really don't understand why. Here's my code so far:
Code:
-- Addon Container |
Hi.
Your OnAddOnLoaded signature is wrong the way you are using it. Your either change the signature to: Code:
function TheDeeps.OnAddOnLoaded(event, addonName) Code:
EVENT_MANAGER:RegisterForEvent(TheDeeps.name, EVENT_ADD_ON_LOADED, function (...) TheDeeps:OnAddOnLoaded(...) end) Code:
EVENT_MANAGER:RegisterForEvent(TheDeeps.name, EVENT_ADD_ON_LOADED, function (...) TheDeeps.OnAddOnLoaded(TheDeeps, ...) end) |
All times are GMT -6. The time now is 01:19 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI