12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9 ■ Working with Frames, Widgets, <strong>and</strong> Other Graphical Elements 155Finding GraphicsYou may be wondering how you might browse through the game files, looking<strong>for</strong> a graphic to add to your frames. In Chapter 7 you were shown how toextract the interface art, but the files that are extracted cannot be nativelyviewed on most computers.Luckily, you have two easy ways to browse those pictures. The first is anaddon that you can run in the game, <strong>and</strong> the second is a website that makes iteasy to browse the images.TexBrowser AddOnThe author <strong>of</strong> Omen2 <strong>and</strong> other popular addons, Antiarc, has written anin-game browser <strong>for</strong> the textures included in the game files. The addon iscalled TexBrowser <strong>and</strong> you can find it at http://wow.curse.com/downloads/wow-addons/details/texbrowser.aspx.Because this addon contains a large list <strong>of</strong> the available textures, it does notload automatically (this helps prevent slowing down your login <strong>and</strong> normalgameplay). You can use AddonLoader (discussed in Chapter 8) or run thecomm<strong>and</strong>s listed on the addon’s webpage:/run LoadAddOn(“TexBrowser“)/texFigure 9-5 shows the TexBrowser window, viewing different available textures.One neat feature <strong>of</strong> TexBrowser is that it’s not limited to the interfacetextures, but actually lists some textures that are used in the game environment,such as spell textures.ArtBrowser on Wowprogramming.comTo allow you to view the available graphics without having access to <strong>World</strong><strong>of</strong> <strong>Warcraft</strong>, we created a web application that allows you to browse thetextures. Just load http://wowprogramming.com/utils/artbrowser in yourweb browser, <strong>and</strong> you’ll have access to all <strong>of</strong> the interface images in easy-toviewPNG <strong>for</strong>mat.Adding TexturesTextures are two-dimensional graphics that are rendered by the game client<strong>for</strong> the user interface. A texture can consist <strong>of</strong> a graphics file loaded from disk,a solid color, or a gradient from one color to another. The following is a verybasic texture definition:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!