Can this BLP file be used?
|
Yes; you must grab sections via texture coordinates using the SetTexCoord function.
|
Thank you very much.
My next question would be how do I find out which values to use for the coordinates? If someone could point me in the right direction. Maybe an addon or a blizzard xml/lua that I can use an an example? Half the fun of writing my first addon is learning al this new stuff. :p:) |
You can use something like Discord Art to create a frame in-game to view the texture and then use the x1/x2 y1/y2 etc buttons to zoom in on the coordinates within the texture.
Pressing the # button will give you a border so you can see the bounds then once done, copy/paste the settings. |
Thanks Fizzlemizz.
B.t.w. Downloaded Discord art and got an out of date message. You set the versions in the TOC's to 6.10.00 :-) |
Check the "load out of date addons" box under the Addons button at the character select screen. This will be updated with the next release but doesn't effect the version you downloaded.
It can be strange getting started with this so to get you going, the coords for the bottom left (wood/iron corner piece) is x1=0.15199999511242 x2=0.34 y1=0.80140000581741 y2=0.98901998996735 Enter those (pressing enter after pasting each one) then use the x/y + and - buttons to better see how it adjusts the zooming. |
The link that Torhal provided gives directions and examples on how to use the function.
In short, think of the image as having a coordinate plane that ranges from Code:
0--1 |
All times are GMT -6. The time now is 01:40 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI