Square Class Portraits
Do we know if any exist in the default UI or do I have to make them?
|
|
Aw thank you, I didn't think to look there >.>
|
Quote:
|
Quote:
Lua Code:
i.e: To get the Shaman icon, you'd do: Lua Code:
|
Thank you. Now if you would be so kind to explain what the numbers mean based on the graphic? Meaning the Shaman works out to something like
|
from the looks of the posted graphics its been created with 4 rows of 4 icons in it, which does make things easier calculation wise
upper left point of the rectangle surronding the shaman icon is then 1/4 of width and height into the image lower right point 1/2 the width and height into the image or to stick with fours 2/4 ;) normally origin for coords like this would be the upper left corner of the complete image |
Bottom row is empty... of course! Thank you Ordrosh and Nibelheim :) This was bothering me when I was looking at the minimap icons and saw one giant image, and then someone asked about the class icons, which works on the same principle.
If I wanted the Warrior icon, I'd use 0/4, 1/4, 0, 3/4 correct? Or at least nearly enough that I could figure it out once I plug it into code. |
Quote:
|
Here is the corresponding string icon code.
I set the icon size to 14. Could be any size. Lua Code:
Result: The full icon archive: http://www.wowinterface.com/forums/s...ad.php?t=46221 |
Quote:
For example, to trim the beveled edges off Blizzard icons, you'll see a lot of icon:SetTexCoord(0.07, 0.93, 0.07, 0.93) in addons. You don't have to use fractions (you'll see values like 0.64189753247 in Blizzard code) but it tends to be easier to write 18/64 or something than to calculate the decimal value yourself and write it all in. |
All times are GMT -6. The time now is 03:18 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI