View Single Post
07-26-14, 05:06 AM   #7
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Originally Posted by ObbleYeah View Post
I think either ElvUI or Aurora uses it liberally.
I can understand ElvUI using VARIABLES_LOADED when setting up the UI's "Set CVars" option, but that is still awkward.

I don't see why Aurora would use it, however.

In either case, Phanx (as usual) explained the issue with registering that event better than I, or most people.

If you are rewriting an AddOn, use ADDON_LOADED instead, and save yourself and your users a whole lot of pain.

As for my previous post, on second thought, don't use PLAYER_LOGIN, as that can fire when you have logged in, but are not actually in the game world, and thus your AddOn is not fully loaded in terms of frames, scripts, possibly saved variables, etc.

Not that I've tested, but I wouldn't put it past Blizzard to make PL depreciated for AddOns, and make it exclusive to the BattleNet desktop app. You know that message where your friend Bob has logged into the app, but hasn't logged into a game? Yeah, I can see Blizzard doing something sneaky like that.
  Reply With Quote