View Single Post
11-20-18, 10:32 PM   #10
jlam
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 29
Originally Posted by myrroddin View Post
What you are probably seeing, as to why Ace3 is giving you "Beast Mastery" whereas non-Ace3 is "No Spec" is because of what I said above. OnInitialize registers ADDON_LOADED, but then unregisters ADDON_LOADED behind the scenes. OnEnable, behind the scenes, does the same thing with PEW, meaning the character has fully loaded into the game at that point.

Following that logic, without Ace3, if you want your specialization data, register for PEW, get your data, then unregister.
I don't think that's quite right. AceAddon-3.0 probably registers PLAYER_LOGIN to trigger all of the OnEnable() methods of any Ace3 addons, since OnEnable is only run once per login. PLAYER_ENTERING_WORLD is the event that fires when your UI gets that loading screen. Regardless, PLAYER_ENTERING_WORLD is usually a good event to register if you want to get game information -- it's the same one that the Blizzard addons usually register for that same purpose.
  Reply With Quote