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.

128 Part II ■ <strong>Programming</strong> in <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>## Notes:## Notes: Greet other playersThe ## Notes directive gives you the capability to provide a longer description<strong>of</strong> your addon. This field can also be localized to provide a differentdescription depending on client locale in the same way as ## Title,<strong>and</strong>mayalso contain color codes to highlight portions <strong>of</strong> the text. Figure 8-2 shows thetooltip displayed by the <strong>WoW</strong>Lua addon .toc file.Figure 8-2: WowLua tooltip, generated from ## Title <strong>and</strong> ## Notes directives## Dependencies:, ## RequiredDeps:## Dependencies: Juggernaut, Alpha## RequiredDeps: Juggernaut, AlphaOccasionally, one addon requires another to be loaded in order to function.For example, certain addons are organized into individual addon plugins, allrequiring one central addon. To express this, you give the ## Dependencies or## RequiredDeps directive a list <strong>of</strong> comma-separated addon names. The gameclient will load all required dependencies<strong>of</strong>anaddonbe<strong>for</strong>etryingtoloadthe addon itself.When an addon is missing a required dependency, or the dependency addonhas been disabled, an error message is displayed, as shown in Figures 8-3<strong>and</strong> 8-4. You can move your mouse over the addon name to view a list <strong>of</strong>dependencies <strong>and</strong> see which ones are missing.Figure 8-3: Addon with dependency disabledFigure 8-4: Addon with dependency missing

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

Saved successfully!

Ooh no, something went wrong!