m
Move page script moved page Using UIDropDownMenu to WoW:Using UIDropDownMenu without leaving a redirect
m (Move page script moved page Using UIDropDownMenu to WoW:Using UIDropDownMenu without leaving a redirect) |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{wow/uihowto}} | ||
'''UIDropDownMenu''' is a [[FrameXML]] Frame template that can be used to create contextual menus and dropdown boxes in World of Warcraft. This tutorial explains how to use it in your addon. | '''UIDropDownMenu''' is a [[FrameXML]] Frame template that can be used to create contextual menus and dropdown boxes in World of Warcraft. This tutorial explains how to use it in your addon. | ||
| Line 32: | Line 32: | ||
* The standard drop down menu. | * The standard drop down menu. | ||
:[[Image: | : [[Image:UIDropDownMenu-Example NoMenu.jpg|The standard drop down menu.]] | ||
* Using the "MENU" keyword. | * Using the "MENU" keyword. | ||
: [[Image: | : [[Image:UIDropDownMenu-Example_Menu.jpg|Using the "MENU" keyword.]] | ||
== Step 2 : The Menu == | == Step 2 : The Menu == | ||
| Line 43: | Line 43: | ||
<Scripts> | <Scripts> | ||
<OnLoad> | <OnLoad> | ||
UIDropDownMenu_Initialize( | UIDropDownMenu_Initialize(self, MyDropDownMenu_OnLoad, "MENU"); | ||
</OnLoad> | </OnLoad> | ||
</Scripts> | </Scripts> | ||
| Line 58: | Line 58: | ||
<Scripts> | <Scripts> | ||
<OnLoad> | <OnLoad> | ||
UIDropDownMenu_Initialize( | UIDropDownMenu_Initialize(self, MyDropDownMenu_OnLoad); | ||
</OnLoad> | </OnLoad> | ||
| Line 95: | Line 95: | ||
[[API_ToggleDropDownMenu|Click here]] for more information on [[API_ToggleDropDownMenu|ToggleDropDownMenu]]. | [[API_ToggleDropDownMenu|Click here]] for more information on [[API_ToggleDropDownMenu|ToggleDropDownMenu]]. | ||
== HOWTO: nested submenu structures with UIDropDownMenu == | == HOWTO: nested submenu structures with UIDropDownMenu == | ||
| Line 160: | Line 159: | ||
* [[UI Object UIDropDownMenu]]: template documentation. | * [[UI Object UIDropDownMenu]]: template documentation. | ||
* [[API EasyMenu]]: a table-based interface for dropdowns | * [[API EasyMenu]]: a table-based interface for dropdowns | ||
[[Category:HOWTOs|Use UIDropDownMenu]] | |||