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

m
Added 100% Lua example
(Creating (from email))
 
m (Added 100% Lua example)
Line 65: Line 65:
         InterfaceOptions_AddCategory(panel);
         InterfaceOptions_AddCategory(panel);
     end
     end
== Example entirely in Lua ==
  MyAddon = {};
  MyAddon.panel = CreateFrame( "Frame", "MyAddonPanel", UIParent );
  -- Register in the Interface Addon Options GUI
  -- Set the name for the Category for the Options Panel
  MyAddon.panel.name = "MyAddon";
  -- Add the panel to the Interface Options
  InterfaceOptions_AddCategory(MyAddon.panel);


[[Category:HOWTOs|Using the Interface Options Addons panel]]
[[Category:HOWTOs|Using the Interface Options Addons panel]]
Anonymous user