Originally Posted by Brainling
Interesting note about the chat frame. I had noticed chat messages from d() did not print in EVENT_ADD_ON_LOADED.
I may go ahead and transition to using EVENT_PLAYER_ACTIVATED, as it seems more "correct", even if EVENT_ADD_ON_LOADED works in this instance.
|
I'm going to start doing this too for my addons. Currently in my addon "Clarity" I must use zo_callLater() after EVENT_ADD_ON_LOADED calls for *all addons* because some addon TLWs still have not been created. This is not the case with EVENT_PLAYER_ACTIVATED.
One thing about EVENT_ADD_ON_LOADED is it's not called between zone changes, whereas EVENT_PLAYER_ACTIVATED is. And as you know, both are called on reload UI. Therefore, you just need to make sure you UnregisterForEvent EVENT_PLAYER_ACTIVATED for your addon immediately after it's called.