WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Esamynn at 11/7/2005 11:21:08 PM PST
Subject: UnitExists("player") issue
   A while back Iriel asked for some method of determining whether an OnDemand AddOn was being loaded during the initial loading phase or not. Slouken suggested that UnitExists("player") should not return true until PLAYER_ENTERING_WORLD has been called for the first time (I suppose now PLAYER_LOGIN). While this worked at the time, UnitExists("player") now always returns true. This is causing me problems because I was hoping to use this fact to be certain that one of my functions will not execute before PLAYER_LOGIN has fired.

Anyone know of an alternate method of determining whether PLAYER_LOGIN has fired or not?

Or alternatively, Slouken, would it be possible to revert this function's behaviour to what it used to be, or provide another method of getting this information?

Thanks
Ignorance can be cured. Stupidity is terminal!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=259896&p=#post259896
 
Poster: slouken at 11/8/2005 12:24:18 AM PST
Subject: Re: UnitExists("player") issue
  

Q u o t e:
A while back Iriel asked for some method of determining whether an OnDemand AddOn was being loaded during the initial loading phase or not. Slouken suggested that UnitExists("player") should not return true until PLAYER_ENTERING_WORLD has been called for the first time (I suppose now PLAYER_LOGIN). While this worked at the time, UnitExists("player") now always returns true.


Can someone write a minimal addon to confirm this?
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=259896&p=#post259921
Poster: slouken at 11/8/2005 9:43:34 AM PST
Subject: Re: UnitExists("player") issue
  

Q u o t e:
That statement should be true of PLAYER_ENTERING_WORLD, but I dont know about PLAYER_LOGIN (Both events exist and are slightly different)


It should be true of both of them, if it's possible to size the frame at login...
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=259896&p=#post259995
Poster: slouken at 11/8/2005 1:47:00 PM PST
Subject: Re: UnitExists("player") issue
   Yes, hidden frames are not guaranteed to be sized and positioned until they are shown, as an optimization in the layout engine.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=259896&p=#post260181
Poster: slouken at 11/10/2005 5:36:24 PM PST
Subject: Re: UnitExists("player") issue
  

Q u o t e:
Ok, I found a case where a frame can be shown and anchored, but frame:GetRight() will still return nil at the time of PLAYER_LOGIN


Long story short, this is fixed for 1.9, see the changes thread for details.

Thanks!
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=259896&p=#post261743

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?