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

m (edited the forum link)
Line 77: Line 77:
   -- Add the panel to the Interface Options
   -- Add the panel to the Interface Options
   InterfaceOptions_AddCategory(MyAddon.panel);
   InterfaceOptions_AddCategory(MyAddon.panel);
 
 
  -- Make a child panel
  MyAddon.childpanel = CreateFrame( "Frame", "MyAddonChild", MyAddon.panel);
  MyAddon.childpanel.name = "MyChild";
  -- Specify childness of this panel (this puts it under the little red [+], instead of giving it a normal AddOn category)
  MyAddon.childpanel.parent = MyAddon.panel.name;
  -- Add the child to the Interface Options
  InterfaceOptions_AddCategory(MyAddon.childpanel);


== Directly opening your options panel ==
== Directly opening your options panel ==
Anonymous user