WoW:Creating defaults: Difference between revisions

m
Move page script moved page Creating defaults to WoW:Creating defaults without leaving a redirect
m (Move page script moved page Creating defaults to WoW:Creating defaults without leaving a redirect)
 
(One intermediate revision by one other user not shown)
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.
Anonymous user