WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   'Advanced' newbie questions - graph? (https://www.wowinterface.com/forums/showthread.php?t=16727)

Bachowny 06-12-08 07:44 AM

'Advanced' newbie questions - graph?
 
Hi all,

I have some questions about things I haven't been able to work out from the various sources (WoWWiki, Blizzard's code, this forum).

1 - Is there any sort of graphical element available either as a library or in the standard widgets? I just want to do some lines and boxes. Failing that, some sort of graphing or charting library?

2 - Can I dynamically build an interface (to make a graph out of progress bars LOL)? I've tried using CreateFrame during OnLoad but had no luck so far.

3 - How do I get it to reference one LUA file from another? I'm a noob with Lua so I haven't quite got the hang of . versus : yet, but neither seem to want to play if a function is in another file, even though I've seen it done elsewhere (e.g. LightHeaded:Stuff).

4 - Can anyone point an old C++ programmer in the direction of a tutorial to get my head around this crazy (ordered set based? did i guess right?) language?

Apologies if this is already covered elsewhere, but you know what it's like searching a forum with no lingo. :D On the bright side, my tiny DPS meter already works without answers to these questions. :banana:

Dreadlorde 06-12-08 07:58 AM

I can answer #4. I would suggest entering the raffle for the book World of Warcraft Programming, or just buying it. It's a great place to start, and it has a complete API reference with examples.

Hope that helps.

Kaomie 06-12-08 08:08 AM

Quote:

Originally Posted by Bachowny (Post 93466)
..., some sort of graphing or charting library?

If you are willing to dig into Ace (might not be the easiest way to start learning about WoW LUA), you could make use of LibGraph-2.0.
It is used among others in Recount, which is a good example for dynamic graphs.

Slakah 06-12-08 08:14 AM

Quote:

If you are willing to dig into Ace (might not be the easiest way to start learning about WoW LUA), you could make use of LibGraph-2.0.
It uses LibStub so you don't have to use any AceLibrarys for it to work.

Bachowny 06-12-08 08:18 AM

Thanks for the fast replies
 
Thanks for the fast replies. I'll look into that library, although I've never hooked one up before so... :)

Cyas.

Kaomie 06-12-08 08:24 AM

Quote:

Originally Posted by Slakah (Post 93469)
It uses LibStub so you don't have to use any AceLibrarys for it to work.

Maybe but all examples using it probably will, so you may have to look around a little more than just the library to understand what is going on. If you have a better example please feel free to share.

Slakah 06-12-08 08:39 AM

Quote:

Originally Posted by Kaomie (Post 93472)
Maybe but all examples using it probably will, so you may have to look around a little more than just the library to understand what is going on. If you have a better example please feel free to share.

Ahh I thought you were suggesting that to use LibGraph-2.0 that you have to use Ace, sorry about the miss understanding. tbh there isn't that much difference in a stand-alone mod and an Ace addon, appart from the option tables.


All times are GMT -6. The time now is 04:41 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI