(If you plan on using XML for frames definitions, this probably isn't for you.)
To create an addon based on this template:
- Copy the
.tocand.luafile into a folder inWoW/Interface/Addons, named with your addon name.- e.g.
WoW/Interface/Addons/MyAddon
- e.g.
- Rename the files to match your addon name
- e.g.
MyAddon.luaandMyAddon.toc
- e.g.
- Edit
MyAddon.tocand adjust the title, notes, author settings. TheSavedVariablesPerCharactershould be set to e.g.MyAddonPrefs. The last line of the file must point to your.luafile. - Edit
MyAddon.luaand replace every occurance ofNewAddonwithMyAddon - Launch WoW
The addon should spawn a black square in the center of the viewport, with a constantly changing number in it. Dragging the square around will move it. The position of the square will be stored in preferences. Right-clicking the square will show some text in chat.
You can now modify the addon to suit your purposes. Type /reload into chat to see changes take effect.
