WoW:Using the Interface Options Addons panel (source)
Revision as of 23:34, 4 November 2008
, 4 November 2008Added 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]] | ||