m
→Designating variables to save: padding outline in IE compat. way
m (→Designating variables to save: padding outline in IE compat. way) |
|||
| Line 30: | Line 30: | ||
The <tt>## SavedVariables:</tt> heading is used for data you want to be available to your addon no matter which character is playing. <tt>## SavedVariablesPerCharacter:</tt> is used for data that you ONLY want to be available to a specific character. There is no way of accessing another character's per-character data, so if you need to access other character's data, then you should use a regular per-addon saved table, and use indexes within that for realm and character. | The <tt>## SavedVariables:</tt> heading is used for data you want to be available to your addon no matter which character is playing. <tt>## SavedVariablesPerCharacter:</tt> is used for data that you ONLY want to be available to a specific character. There is no way of accessing another character's per-character data, so if you need to access other character's data, then you should use a regular per-addon saved table, and use indexes within that for realm and character. | ||
<div style="border:solid 1px; padding:1em;background:#222;color:#ccc;"><div> | |||
=== The RegisterForSave function (Do not use this) === | === The RegisterForSave function (Do not use this) === | ||
| Line 47: | Line 48: | ||
ADDON_SETTINGS = {} | ADDON_SETTINGS = {} | ||
<nowiki>ADDON_SETTINGS["dynamic" .. something] = value</nowiki> | <nowiki>ADDON_SETTINGS["dynamic" .. something] = value</nowiki> | ||
</div></div> | |||
== Using previously saved variables == | == Using previously saved variables == | ||