WoW:Using the Interface Options Addons panel (source)
Revision as of 14:53, 5 February 2009
, 5 February 2009corrected awkward phrasing
m (Added 100% Lua example) |
m (corrected awkward phrasing) |
||
| Line 74: | Line 74: | ||
-- Add the panel to the Interface Options | -- Add the panel to the Interface Options | ||
InterfaceOptions_AddCategory(MyAddon.panel); | InterfaceOptions_AddCategory(MyAddon.panel); | ||
== Directly opening your options panel == | |||
If you wish to open your addon's options panel directly – for example, with a slash command – you can do so by calling a single function: | |||
InterfaceOptionsFrame_OpenToCategory(panel); | |||
Or | |||
InterfaceOptionsFrame_OpenToCategory(panel.name); | |||
[[Category:HOWTOs|Using the Interface Options Addons panel]] | [[Category:HOWTOs|Using the Interface Options Addons panel]] | ||