Chapter 9 - Anatomy of an Addon
Table of Contents
Anatomy of an Addon - 117
- Exploring Your Addons Folder - 117
- Blizzard Addons - 117
- Custom Addons - 118
- Addon Components and Files - 119
- Table of Contents Files (.toc) - 119
- ## Interface: - 119
- ## Title: MyAddonName - 120
- ## Notes: This is a description for MyAddonName. - 121
- ## Dependencies or ## RequiredDeps: AddonA, AddonB - 121
- ## OptionalDeps: AddonA, AddonB - 122
- ## LoadOnDemand: 1 or 0 - 122
- ## LoadsWith: AddonA, AddonB - 122
- ## DefaultState: enabled or disabled - 123
- ## LoadManager: AddonA - 123
- ## SavedVariables: VariableName - 123
- ## SavedVariablesPerCharacter: VariableName - 123
- Lua Script Files - 124
- XML Files - 125
- Media Files - 125
- Music - 125
- Graphics - 126
- Localizing Your Addons - 126
- Valid Locales - 127
- Reasons for Providing Localization - 127
- Encouraging Users to Contribute - 127
- Implementing Localization - 128
- Add a File for Each Locale - 128
- Create a Global Table Containing the Base Strings - 128
- Using the Localization Table - 129
- Adding New Locales - 129
- Handling Partial Translations - 130
- Creating an Addon Skeleton - 130
- Naming your Addon (Creating a Directory) - 130
- Creating a .toc File - 130
- Generating a Skeleton .xml file - 130
- Using External Libraries - 131
- Summary - 131