Thread Tools Display Modes
11-01-10, 08:45 PM   #1
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Using the item slot "icons" in my own addon

Hi,

Does anyone know if it's possible to use the item slot icons or images that are displayed when you click on your portrait? I'd like to reuse these images for my own addon I just don't know if I am going to have to dump a screenshot and modify them all individually, or if they are out there and I can pull them up somehow.

Thanks!

Zealer
  Reply With Quote
11-01-10, 09:00 PM   #2
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
If they're part of the stock UI, they are available, just a matter of finding the name of it. I'm not sure what you mean so can't tell where to look specifically.

There's an online browser available at the link below, not sure if it's totally up to date with the latest 4.0.1 patch, but maybe your art is there.

http://wowprogramming.com/utils/artbrowser
__________________
Oh, the simulated horror!
  Reply With Quote
11-01-10, 09:13 PM   #3
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Thanks for the quick reply. This definitely helps. I'm looking for the equipping items screen where you can drop your items into your wearable slots. Helm, Shoulders, Belt etc.
  Reply With Quote
11-01-10, 09:35 PM   #4
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
That would be the PaperDoll-frame.

http://wowprogramming.com/utils/artbrowser/PaperDoll
__________________
Oh, the simulated horror!
  Reply With Quote
11-01-10, 09:39 PM   #5
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by Zealer View Post
Thanks for the quick reply. This definitely helps. I'm looking for the equipping items screen where you can drop your items into your wearable slots. Helm, Shoulders, Belt etc.
API_GetItemIcon returns the items texture name and path.

Most (all?) item textures are located in "Interface\Icons".

[edit]
doh ... misunderstood that
  Reply With Quote
11-02-10, 05:31 PM   #6
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Sweet

Ailae, those are exactly what I was looking for. What path would I use to access those?

Thanks again for the help!
  Reply With Quote
11-02-10, 06:43 PM   #7
Ailae
A Rage Talon Dragon Guard
 
Ailae's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 318
http://wowprogramming.com/utils/artbrowser

translates into

<GameDir>\Interface\

But those files are packaged into the MPQ-archives so they won't be readily available right off the bat. You can however download them from Blizzard at the url below, just grab the artpack and the folder structure will look familiar from what you saw in the artbrowser. The files are .blp though, so you might need to get some software to view them (I believe XnView does a good job of this).

http://us.blizzard.com/support/artic...rticleId=21466
__________________
Oh, the simulated horror!
  Reply With Quote
11-02-10, 09:06 PM   #8
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Works!

Thanks Ailae!

That allowed me to get the proper file names and I got it working!

Appreciate all the help.
  Reply With Quote

WoWInterface » Developer Discussions » Graphics Help » Using the item slot "icons" in my own 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