WoW:Getting started with writing AddOns: Difference between revisions

Line 52: Line 52:
This is the file that instructs WoW in some basics about your AddOn and what other files you want loaded. Here's a short example of one. If you pasted this code into a 'MyAddOn.toc' file it would work as a beginning toc file:
This is the file that instructs WoW in some basics about your AddOn and what other files you want loaded. Here's a short example of one. If you pasted this code into a 'MyAddOn.toc' file it would work as a beginning toc file:


## Interface: {{API LatestInterface}}
<pre>
## Title : My AddOn
## Interface: {{API LatestInterface}}
## Notes: This AddOn does nothing but display a frame with a button
## Title: My AddOn
## Author: My Name
## Notes: This AddOn does nothing but display a frame with a button
MyAddOn.xml
## Author: My Name
MyAddOn.lua
MyAddOn.xml
MyAddOn.lua
</pre>


You can read more about what you need or can put in a TOC over at [[The TOC Format]].
You can read more about what you need or can put in a TOC over at [[The TOC Format]].