Thread Tools Display Modes
07/07/14, 04:21 AM   #1
mikethecoder4
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 13
Creating Graphs

Hello All.

Does the API (or perhaps LUA itself) have any functions that can simply draw a line or other shape? I want to make a sort of graph for my addon to show some information, and so far, all I have figured out how to make was a simple bar graph. If I have to stick with bar graphs, thats fine, but I would love to be able to create a line graph, or even a pie graph if possible!

If anyone has any insight on how I would accomplish this that would be awesome! Thank you for reading
  Reply With Quote
07/07/14, 05:34 AM   #2
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
We have a library that goes into providing those expanded UI elements, called Unicorn:
http://www.esoui.com/downloads/info1...corn.html#info
But afaik that stopped after the first item (a list).

The best fit in the wiki is propably the LineControl.

Or maybe you can do something with the new TextureComposite controll that was added with 1.2.3?
http://www.esoui.com/forums/showthread.php?t=1865

Overall UI is not my strong area in ESO.
  Reply With Quote
07/07/14, 06:53 AM   #3
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 89
I think a pie graph is possible with some smart texture layering.

I am not sure if you can actually draw a line. But also by combining textures and rotating/positioning you could get close to a linegraph.
  Reply With Quote
07/07/14, 07:19 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Never tried it, but if it can be done in WoW, it has to be possible in ESO.
An example: http://www.wowace.com/addons/recount/images/

(Graphs are created using LibGraph-2.0 library, so it can be probably adapted for ESO)

Last edited by Garkin : 07/07/14 at 07:26 AM.
  Reply With Quote
07/07/14, 03:28 PM   #5
mikethecoder4
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 13
Hey guys, thanks for the advice. Ill definitely look into these links
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Creating Graphs


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off