Originally Posted by Shinni
It's EVENT_ADD_ON_LOADED instead of EVENT_ADDON_LOADED.
That's why your initialization function is not executed.
|
Thanks for catching that! I can't believe I missed that
I changed the event register to EVENT_ADD_ON_LOADED, but its still not going to Initialize().
I'm seeing this error in DebugViewer:
Code:
user:/AddOns/TreasureCounter/TreasureCounter.lua:18: function expected instead of nil
|rstack traceback:
user:/AddOns/TreasureCounter/TreasureCounter.lua:18: in function 'TreasureCounter.Initialize'
user:/AddOns/TreasureCounter/TreasureCounter.lua:11: in function 'TreasureCounter.OnAddonLoaded'