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 20 ■ <strong>Creating</strong> Custom Graphics 383Testing Your TextureTo test the new texture, you need to fully exit <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong> <strong>and</strong> adda small custom addon to house the image. (You could instead add it to anexisting addon, but that exercise is left to the reader, when appropriate.)1. Create a folder IconTest underneath your AddOns directory.2. Add a file IconTest.toc with the following contents:## Interface: 30200## Title: IconTest## Notes: Simple icon test addonIconTest.xml3. Add a file IconTest.xml with the following contents. Change DaisyIconto the name <strong>of</strong> your icon filename.4. <strong>WoW</strong> doesn’t require you to specify extensions when loading textures; itwill try to load both a .BLP <strong>and</strong> a .TGA automatically.5. Copy your icon file to the IconTest directory.6. Load up <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong> <strong>and</strong> hope you don’t have any errors in yourXML.If you have created the texture correctly, it should appear in the center <strong>of</strong>your screen (see Figure 20-15).If you’ve made any errors, you might experience one <strong>of</strong> two symptoms: nobutton appears, or you see only a solid green box.

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

Saved successfully!

Ooh no, something went wrong!