WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Iriel at 9/7/2005 10:56:48 PM PDT
Subject: Slouken: Addon detecting load type
   In reading and commenting on a couple of recent dynamic loading threads, I realized that, as an addon author, I dont think I have any way of detecting if my addon is being loaded before or after PLAYER_ENTERING_WORLD / PLAYER_LOADED.

Would it be possible (for 1.8) to add an extra arg to the ADDON_LOADED event to indicate whether it's being loaded before or after that point? Or failing that a method that could be called to establish this.

In the 1.7 meantime, what's a good test that would reliably show on which side of the event you were on?
> Use ## SavedVariables: instead of RegisterForSave()
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212016&p=#post212016
 
Poster: slouken at 9/8/2005 10:55:50 AM PDT
Subject: Re: Slouken: Addon detecting load type
   You could try UnitExists("player") on load
(just an idea, I haven't tried it)
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212016&p=#post212216
Poster: slouken at 9/8/2005 1:48:05 PM PDT
Subject: Re: Slouken: Addon detecting load type
   Use UnitExists("player"), if possible, since that is sort of the definition of PLAYER_ENTERING_WORLD
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212016&p=#post212346
Poster: slouken at 9/8/2005 2:58:43 PM PDT
Subject: Re: Slouken: Addon detecting load type
   You're welcome, that was my hope. :)
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=212016&p=#post212411

View all recent official Blue Posts

WoW Blue Tracker: Archiving World of Warcraft Blue Posts
since March 2005
Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
 

Why Ads?