Reply
Thread Tools Display Modes
Unread 05-29-13, 01:46 AM   #1
shurshik
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 24
Circle and other graphic for CombatReplay addon

Hi!

I am working on a new addon CombatReplay:


But I have problems with graphics for it (i hate graphic).

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.

But what I have now:
how can I create a simple circle? Is there the other way instead of taking an image and import it to the game?
I will need to create a simple line too, I didn't test it, but found this: http://wowprogramming.com/forums/development/271

Maybe you can suggest me something, or maybe someone has converted simple circle already (or something else that I could use in the addon) to share with me?
shurshik is offline   Reply With Quote
Unread 05-29-13, 02:47 AM   #2
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,286
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.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 05-29-13, 02:58 AM   #3
shurshik
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 24
Originally Posted by Phanx View Post
What maps are you using? If possible, you should use the existing in-game map art.
How can I get them? I got 3 different maps to test: screenshots from air of the boss room, maps created from getting images of minimap, screenshot of the zone map (don't like it, very little boss rooms)
shurshik is offline   Reply With Quote
Unread 05-29-13, 05:03 AM   #4
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,286
You don't need to take screenshots of in-game graphics, paste them in Photoshop, and save them as new graphics. Just find the path to the graphics that the game already uses. Any map addon should have the code you need for maps.

If you actually want a screenshot of the 3D game world (not a screenshot of the map) that's a different story, and you will need to use your own images. Just make sure each dimension is a power of 2 (they don't have to be the same power of 2) and save the image as 32-bit TGA. If you're using GIMP, the default settings for exporting to TGA are appropriate for WoW graphics.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Unread 06-04-13, 10:59 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,354
If you need help with graphics send me a message. I can help.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is online now   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Graphics Help » Circle and other graphic for CombatReplay addon

Thread Tools
Display Modes

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