api/AceConfig-3.0
AceConfig-3.0 wrapper library.
Provides an API to register an options table with the config registry,
as well as associate it with a slash command.
AceConfig:RegisterOptionsTable(appName, options [, slashcmd])
Register a option table with the AceConfig registry.
You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly.
Parameters
- appName
- The application name for the config table.
- options
- The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/
- slashcmd
- A slash command to register for the option table, or a table of slash commands.
Usage
local AceConfig = LibStub("AceConfig-3.0") AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"})
 
                            
- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted Dec 26, 2010Can we get a listing of all the depenendaces on AceConfig?
At the very least it requires
CommandHandler, but adding just that to the library and embeds isn't enought to make it work.And in fact, the dependency on
CommandHandlerisn't documented. A listing of all the libraries i have tosvn:externalandpkgmetaexternal andlibsexternal andembeds.xmlexternal would be....required.- 
            
                
                View User Profile
     
            
            
            
       
- 
            
                
                Send Message
     
            
            
            
       
Posted May 18, 2018The usage section needs updated to correct an error.
The RegisterOptionsTable function ends up calling AceConfigCmd:CreateChatCommand(slashcmd, appName)
where the slashcmd param is required to not have the leading slash.
So change AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"})
to
AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"myslash", "my"})