WoW:Creating defaults: Difference between revisions

→‎The XML: remove reference to old tutorial
(→‎The XML: remove reference to old tutorial)
Line 1: Line 1:
This is a basic HOWTO to help you create defaults for your addon. First, I'm going to assume you are at least familiar with how to start an addon, and make it save variables. If not, please check out [[AddOns|this page on how to start an addon]] and [[HOWTO: Save Variables Between Game Sessions]]. This is required knowledge for our defaults.
This is a basic HOWTO to help you create defaults for your addon. First, I'm going to assume you are at least familiar with how to start an addon, and make it save variables. If not, please check out [[AddOns|this page on how to start an addon]] and [[Saving variables between game sessions]]. This is required knowledge for our defaults.


== The Basics ==
== The Basics ==
Line 33: Line 33:


==== The XML ====
==== The XML ====
While most of this part is covered in the [[HOWTO: Save Variables Between Game Sessions]], I think that this is a bit easier to understand...


First off, we need to make a function that we call when our addon has finished loading... To do that, first we need to add a line to the OnLoad section of our XML file.
First off, we need to make a function that we call when our addon has finished loading... To do that, first we need to add a line to the OnLoad section of our XML file.