WoW:Using the Interface Options Addons panel: Difference between revisions

m
corrected 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]]
Anonymous user