WoW BlueTracker Home | RSS | News | Contact
Recent | Search | Archive | CS Posts
Poster: Mondinga at 9/5/2005 4:43:22 PM PDT
Subject: Slouken - PLAYER_ENTERING_WORLD Issue
   This is a problem I've been plagued with for a while, and haven't seen anything about. Excuse me if I've simply missed it.

It seems that any frame location functions like GetCenter(), GetLeft(), etc return nil at PLAYER_ENTERING_WORLD. They're fine seemingly right before and right after the event, but nil on anything I've tested aside from UIParent itself. Now this wouldn't necesarily be a big deal, but it's been insisted many times that *everything* is available at PLAYER_ENTERING_WORLD, and that is when initializations should occur.

I thought perhaps I was going crazy, so I made a little add-on to gather some data on this. The add-on runs checks of GetCenter(), GetLeft(), and GetBottom() during ADDON_LOADED, VARIABLES_LOADED, PLAYER_ENTERING_WORLD, and then once as soon as OnUpdate fires. The info is output as a saved variable, and the add-on can be found here: http://gypsymod.the-mad.net/download/EventTester.zip

Would love any information on this, even if it's "don't use PLAYER_ENTERING_WORLD" - and again, if I've missed the answer in the past, forgive me the spam.
GypsyMod
http://gypsymod.the-mad.net
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=210584&p=#post210584
 
Poster: slouken at 9/7/2005 9:49:16 AM PDT
Subject: Re: Slouken - PLAYER_ENTERING_WORLD Issue
   *grin*
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=210584&p=#post211568
Poster: slouken at 9/7/2005 10:55:25 AM PDT
Subject: Re: Slouken - PLAYER_ENTERING_WORLD Issue
   Well, the good news is I fixed it. The bad news is it won't make it into 1.7.

What was happening was that the UI was processing the video resolution at startup, and hadn't finished resizing everything. I just made sure that completed before continuing. The end user won't see any difference, as the work was still done before the UI is rendered, it's just done earlier now.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=210584&p=#post211609
Poster: slouken at 9/7/2005 1:18:05 PM PDT
Subject: Re: Slouken - PLAYER_ENTERING_WORLD Issue
   Yes.
  http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=210584&p=#post211679

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?