Sol.config.CreateSlashToHandleConfig

From Runes of Magic Wiki - The Runes of Magic

Jump to: navigation, search
Sol.config.CreateSlashToHandleConfig = function(addonName, frame, command)


Creates a slash chat command for your addon that will open/close
your config pages. 

Parameters:
+ addonName - Your addon's name
+ frame     - Your config frame
+ command   - The shorthand command you want to use. A command for
              /<addonName> is automatically created, so this can be nil.
              
POST: entering /<addonName> and/or /<command> will open your config
frame if it's closed and close it if it's open.
Personal tools