KhaosSet
From WoWWiki
This article is a part of the documentation of the Khaos function library
KhaosSet = {
id = "MyConfigSetId";
text = "My AddOn";
helptext = "My AddOn does an amazing thing with awesome stuff. You should enable it.";
difficulty = 6;
callback = function(enabled) if ( enabled) then Sea.io.print("My Addon Activated!") end end;
default = true;
options = {
{KhaosOption},
{KhaosOption},
...
{KhaosOption}
}
commands = {
{KhaosSlashCommand},
{KhaosSlashCommand},
...
{KhaosSlashCommand}
}
}
- id - unique id for that folder
- text - short text description
- helptext - longer description for what addons belong in this folder
- difficuly - number to determine what level of user should be seeing this stuff.
- callback - a function to notify you when the addon is enabled or disabled
- options - a list of configurations associated with this configuration set.
- default - true if the set options default to enabled, false if default disabled.
- commands - a list /commands used to modify this configuration set.
