Posted May 13, 2007 at 09:16PM by Tim Y. Listed in: Mods, Guides, Tips, and Tricks Tags: Blizzard
Ó

World of Warcraft logo - Image 1Given 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] Permalink  |   Email this  |   Linking Blogs   |   Digg It!

Bookmark / Find this article on:

0 Comments


Sort by:


Add QJ.NET
Add to My Yahoo!
Google Reader Subscribe with Bloglines
Add  to your Kinja digest Subscribe in NewsGator Online
Subscribe with Pluck RSS reader Add 'www.qj.net' to Newsburst from CNET News.com
Subscribe with SearchFox RSS del.icio.us www.qj.net
Add to Technorati Favorite! Add to My AOL
furl! it Stumble for Treehugger!
User Favorites - November
Most Commented
(5)
User Favorites - November
Top Jumps
No available articles using criteria