View Single Post
01-28-12, 11:36 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
The actual textures in the game client are compressed inside the MPQ archives in the Data folder, and since Windows does not support MPQ archives natively the way it supports ZIP archives, you can't just browse to the texture files in Windows Explorer, or find them using Windows search functions.

To view the textures outside of the game, you can either extract the whole collection from the game client itself (see Seerah's link again), or you can look inside the MPQ archives using a program like MPQ Editor and only extact the specific texture(s) you're interested in.

To use the textures in-game, just use the right path. See Seerah's link, or look at the Blizzard UI source code (also on wowprogramming.com) to find the path for the texture you want to use. Something like:

myTexture:SetTexture("Interface\\BUTTONS\\WHITE8X8")

If you want to use a Blizzard texture in an addon, you do not need to add a copy of the texture file in your addon's folder, and should not do this, since it wastes space and serves no practical purpose. Just use the proper path as explained above.
  Reply With Quote