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 04:23 AM
Size:
1.62 Kb
Downloads:
703
Favorites:
3
MD5:
Pictures
Click to enlarge
The main menu with a "My Addon" button added near the center of it.
ExtensibleMainMenu
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 | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.