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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 20 ■ <strong>Creating</strong> Custom Graphics 385Filename path separators must be backslashes, even on a Mac OS Xor UNIX system, because <strong>of</strong> the way the client loads <strong>and</strong> parses thefilenames.Lua Texture DefinitionWhen troubleshooting texture errors in Lua, the following issues may exist:The file doesn’t exist.The graphic was saved incorrectly.The filename was not specified correctly.Backslashes in filenames must be escaped (using a double backslash).Alternatively, you can use long string notation to specify the filename:[[Interface\AddOns\YourAddOnName\Path\To\Texture]]Filename path separators must be backslashes, even on a Mac OS Xor UNIX system, because <strong>of</strong> the way the client loads <strong>and</strong> parses thefilenames.SummaryEvery graphical editor has differences <strong>and</strong> settings that are necessary to createan image with partial transparency <strong>for</strong> use in <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>. The GIMPenables you to create your image <strong>and</strong> simply save it as a TGA file, whereasboth Photoshop <strong>and</strong> Paint Shop Pro require you to create an alpha channelbased on a mask or selection.

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

Saved successfully!

Ooh no, something went wrong!