Thread Tools Display Modes
06-06-15, 07:39 AM   #1
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
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]
  Reply With Quote
06-06-15, 09:50 AM   #2
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Yes; you must grab sections via texture coordinates using the SetTexCoord function.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
06-06-15, 11:02 AM   #3
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
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.
  Reply With Quote
06-06-15, 11:10 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-06-15 at 12:48 PM.
  Reply With Quote
06-06-15, 12:10 PM   #5
Yukyuk
A Chromatic Dragonspawn
 
Yukyuk's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 179
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 :-)

Last edited by Yukyuk : 06-06-15 at 12:55 PM. Reason: More information.
  Reply With Quote
06-06-15, 01:02 PM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 06-06-15 at 01:06 PM.
  Reply With Quote
06-06-15, 09:00 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
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
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Can this BLP file be used?

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