WoW:Creating GUI configuration options: Difference between revisions

→‎Load config from SavedVariables: Saving variables between game sessions link
(→‎Load config from SavedVariables: Saving variables between game sessions link)
Line 37: Line 37:


== Load config from SavedVariables ==
== Load config from SavedVariables ==
;Reference Material (optional reading) : [[HOWTO: Save Variables Between Game Sessions]]
: '''Reference Material''' (optional reading) : [[Saving variables between game sessions]]
Using the SavedVariable 'myClockConfig' we declared in the .toc file, we can now load and save our addon's configuration between game sessions.  Remember that SavedVariable is per-account, not per-realm and not per-character, so we will need to use tables to store individual settings.
Using the SavedVariable 'myClockConfig' we declared in the .toc file, we can now load and save our addon's configuration between game sessions.  Remember that SavedVariable is per-account, not per-realm and not per-character, so we will need to use tables to store individual settings.