WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Can this BLP file be used? (https://www.wowinterface.com/forums/showthread.php?t=52356)

Yukyuk 06-06-15 07:39 AM

Can this BLP file be used?
 
While browsing the BlizzardInterfaceArt map I saw the WOOD.blp (inside the PLAYERACTIONBARALT map.
Is there any way to use the elements from this BLP?

[IMG][/IMG]

Torhal 06-06-15 09:50 AM

Yes; you must grab sections via texture coordinates using the SetTexCoord function.

Yukyuk 06-06-15 11:02 AM

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:)

Fizzlemizz 06-06-15 11:10 AM

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.

Yukyuk 06-06-15 12:10 PM

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 :-)

Fizzlemizz 06-06-15 01:02 PM

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.

Seerah 06-06-15 09:00 PM

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
|
1



All times are GMT -6. The time now is 01:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI