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.

384 Part III ■ Advanced Addon TechniquesFigure 20-15: Custom texture being viewed in-gameNo Button AppearsIf you see no button at all, double-check your XML definition, <strong>and</strong> ensure youhave no errors in your FrameXML.log file. You can also use a web browser tocheck that your XML document is well-<strong>for</strong>med. Ensure that your test addonappears in the AddOn listing. Did you make sure to exit <strong>WoW</strong> be<strong>for</strong>e youadded the new files?A Green Box AppearsWhen there is an issue loading a given texture in <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>, the texturewill be colored solid green (see Figure 20-16). Typically, this is a result <strong>of</strong> atypo on the filename being used <strong>for</strong> the texture.Figure 20-16: Solid green texture, indicating an errorDepending on how the texture was created (from an XML definition orthrough a Lua function call), a number <strong>of</strong> issues could result in a green texturebeing displayed.XML Texture DefinitionA texture created in XML may have one <strong>of</strong> the following issues:The file doesn’t exist.The graphic was saved incorrectly.The filename was not specified correctly.Filenames in XML should only have single backslashes betweendirectories.

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

Saved successfully!

Ooh no, something went wrong!