Addon Info.
Optional Files (0)
Comments (0)
  Category: Libraries
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
RaeVanMorlock's Portal Bug Reports Feature Requests
Author:
Version:
1.0
Date:
05-06-2007 03:23 AM
Size:
1.62 Kb
Downloads:
442
Views:
1,442
Favorites:
4
MD5:
Pictures
Click to enlarge
The main menu with a "My Addon" button added near the center of it.
ExtensibleMainMenu
Rate: 3 out of 5 with 2 votes  
Allows addon authors to add buttons to the game's main menu frame. Buttons may be inserted at any numerical index within the list by calling ExtensibleMainMenu.AddButton(obj|text, position, onClickHandler).

Usage Examples
Example 1:
local addonOptionsButton =
ExtensibleMainMenu.AddButton("My Addon", 7, function()
DEFAULT_CHAT_FRAME:AddMessage("Load options frame for my addon...")
end)

Example 2:
local obj = CreateFrame("BUTTON", nil, nil, "GameMenuButtonTemplate")
obj:SetText("My Addon")
ExtensibleMainMenu.AddButton(obj, 7, function()
DEFAULT_CHAT_FRAME:AddMessage("Load options frame for my addon...")
end)


Addon Definition

Methods

ExtensibleMainMenu.AddButton([text|obj, [position, [onClickHandler]]]) - Adds a button to the main menu. If a table is passed, it's treated as a UI object. If a string or number is passed, it's set as the text of a new button. If nil is passed, it creates a space between the buttons. This function returns a reference to the created (or given) object.
  Optional Files - ExtensibleMainMenu
Sorry, there are currently no optional files available.
  Comments - ExtensibleMainMenu
There have been no comments posted to this file.
Be the first to add one.



Category Jump:



The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.