m
Move page script moved page Creating defaults to WoW:Creating defaults without leaving a redirect
m (→Advanced Default Setting Updating: minor corrections) |
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 [[ | 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 ==== | ||
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. | ||