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.

374 Part III ■ Advanced Addon TechniquesTextures should be saved with an 8-bit alpha channel along with the24-bit color data. This allows <strong>for</strong> both partial <strong>and</strong> full transparency intextures.Graphics files must reside in an addon’s directory to be accessible to thegame client.The GIMP<strong>Creating</strong> a texture with transparency is relatively simple in the GIMP because<strong>of</strong> the way it h<strong>and</strong>les the alpha channel. The trick is creating the image witha transparent background, <strong>and</strong> paying particular attention when creating thevarious elements <strong>of</strong> the image.Create a New ImageTo create a new image with the GIMP:1. Select File ➪ New in the main GIMP window.2. In the window that appears (see Figure 20-1), enter the width <strong>and</strong> height<strong>of</strong> your image. Keep in mind that you don’t need to fill the entire space,but both the height <strong>and</strong> width must be a power <strong>of</strong> two.Figure 20-1: GIMP’s New Image dialog

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

Saved successfully!

Ooh no, something went wrong!