Events that fire during the loading process
From WoWWiki
(Redirected from Events that fire during the Loading Process)
This page is a list of the UI events that will reliably fire during the loading process, what their purpose is, and what information becomes available when they fire. This page is broken down into two sections, one for the inital login of a character and one for a call to ReloadUI(). Events in each section are listed in the order they will fire during the loading process. Please note that this page may be incomplete, but it should be a good reference when you are looking for an event to use during the initialization of your AddOn.
Information that is always available to AddOns:
- Character Name ie. UnitName("player")
- Character Class ie. UnitClass("player")
- Character Race ie. UnitRace("player")
- Realm Name ie. GetRealmName()
Character Login
- ADDON_LOADED
- This event fires whenever an AddOn has finished loading and the SavedVariables for that AddOn have been loaded from their file.
- VARIABLES_LOADED
- This event fires when all AddOns that will be loaded during the initial loading sequence (ie. all AddOns that will not be loaded OnDemand) have had their related ADDON_LOADED event fire.
- SPELLS_CHANGED
- This event fires shortly before the PLAYER_LOGIN event and signals that information on the user's spells has been loaded and is available to the UI.
- PLAYER_LOGIN
- This event fires immediately before PLAYER_ENTERING_WORLD.
- Most information about the game world should now be available to the UI.
- All Sizing and Positioning of frames is supposed to be completed before this event fires.
- AddOns that want to do one-time initialization procedures once the player has "entered the world" should use this event instead of PLAYER_ENTERING_WORLD.
- PLAYER_ENTERING_WORLD
- This event fires immediately after PLAYER_LOGIN
- Most information about the game world should now be available to the UI
- All Sizing and Positioning of frames is supposed to be completed before this event fires.
- This event also fires whenever the player enters/leaves an instance and generally whenever the player sees a loading screen
- PLAYER_ALIVE
- This event fires after PLAYER_ENTERING_WORLD
- Talent information should now be available to the UI
User Interface Reload
- ADDON_LOADED
- This event fires whenever an AddOn has finished loading and the SavedVariables for that AddOn have been loaded from their file.
- VARIABLES_LOADED
- This event fires when all AddOns that will be loaded during the initial loading sequence (ie. all AddOns that will not be loaded OnDemand) have had their related ADDON_LOADED event fire.
- PLAYER_LOGIN
- This event fires immediately before PLAYER_ENTERING_WORLD
- Most information about the game world should now be available to the UI
- All Sizing and Positioning of frames is supposed to be completed before this event fires.
- AddOns that want to do one-time initialization procedures once the player has "entered the world" should use this event instead of PLAYER_ENTERING_WORLD
- PLAYER_ENTERING_WORLD
- This event fires immediately after PLAYER_LOGIN
- Most information about the game world should now be available to the UI
- All Sizing and Positioning of frames is supposed to be completed before this event fires.
