WoW AddOn discussion: Pauses between frames |
Ó
Given that creating game mods for World of Warcraft can prove to be a complicated task, we're happy to see that the Blizzard devs are willing to lend a helping hand for the occasional inquiry. With that said, we'll be taking a look at a WoW forum member Casull, who's reported a problem regarding frame code creation for an AddOn under development:I have a class that wraps a frame called Host; Host's new() function creates that frame. It goes like this:
Create frame, set its textures
Give frame dimensions
Set frame's point
call another function:
--->call GetTop() on frame
and that last one is giving me a nil value. Still, if I /dump the GetTop() ingame without having changed anything, it gives me a value. I believed that for GetTop()to return a meaningful value, the frame needs to have height, and it needs to be placed somewhere, yet with both of these requirements fulfilled I'm getting nil values. This leads me to ask - is there some kind of pause between when you call SetPoint(), SetHeight(), SetWidth() and when you can call GetTop()?
Shortly after posting the inquiry, Blizzard spokesman Slouken dropped by to provide for advice: "Make sure that you're setting the frame's point to something that is already resolved. Otherwise it sounds like it should work, and you can post a minimal test case for people to look at."
Not exactly major news, but we imagine this discussion should provide pointers to other players planning to make their very own WoW AddOns. It's the weekend - time to brush up on the tutorials.
Via WoW Forums
2 Jumps Play World of Warcraft Offline
Contact Us:
The QJ.net Network |
|
| Site | Feed |
| QJ.NET | RSS |
| Nintendo DS | RSS |
| PlayStation 3 | RSS |
| PSP Updates | RSS |
| Wii | RSS |
| Xbox 360 | RSS |
| MMORPG | RSS |
| Personal Computer Games | RSS |
| iPhone - iPod Touch | RSS |
| QJ.NET Forums | RSS |
User Favorites - December
User Favorites - December
Categories
Archives
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
Comments
No Comments, be the first to Comment
Add New Comment