View Single Post
05-29-13, 02:47 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by shurshik View Post
I still have to convert jpg maps to put them as a background of the frame, don't know if I'll get some problems with them.
What maps are you using? If possible, you should use the existing in-game map art.

Originally Posted by shurshik View Post
how can I create a simple circle? Is there the other way instead of taking an image and import it to the game?
Not really. You can do a LOT of complicated math with a bunch of tiny solid-colored texture objects, but using an image is infinitely more efficient if you just want a circle. Make it big, so you can use it at many different sizes -- scaling down looks way better than scaling up.

Originally Posted by shurshik View Post
I will need to create a simple line too, I didn't test it, but found this: http://wowprogramming.com/forums/development/271
For simple lines you probably want to just use a simple line texture and rotate it as needed. Or, check out the DrawRouteLine function in FrameXML\TaxiFrame.lua to see how Blizzard draws the paths on the flight map.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote