Quick Jump Daily Digest
Thank you for your interest in the Quick Jump Daily Digest. Get notified of all new content on QJ in our free Daily Digest. To subscribe, enter your email address below and click the subscribe button.
WoW AddOn discussion: Pauses between frames |
Listed in: Titles, Mods, Opinions & Analysis Tags: Blizzard
Ó
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
| This story sucks? This story rocks! |
|
|
Sitemap
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||











