m
Move page script moved page UI Object UIDropDownMenu to WoW:UI Object UIDropDownMenu without leaving a redirect
m (added checked attribute to info element) |
m (Move page script moved page UI Object UIDropDownMenu to WoW:UI Object UIDropDownMenu without leaving a redirect) |
||
| (6 intermediate revisions by 5 users not shown) | |||
| Line 27: | Line 27: | ||
:; menuList : Internal - EasyMenu wrapper argument, passed as the third argument to the initialization function. | :; menuList : Internal - EasyMenu wrapper argument, passed as the third argument to the initialization function. | ||
:; button : Internal - Dropdown menu "open" button. | :; button : Internal - Dropdown menu "open" button. | ||
; UIDropDownMenu_EnableDropDown(dropDownFrame) : Enables a dropdown menu that has been disabled. | |||
:; dropDownFrame : Both - dropdown menu frame reference (menu handle). | |||
; UIDropDownMenu_DisableDropDown(dropDownFrame) : Disables a dropdown menu that is currently enabled. | |||
:; dropDownFrame : Both - dropdown menu frame reference (menu handle). | |||
=== Initialization functions === | === Initialization functions === | ||
| Line 43: | Line 47: | ||
|- | |- | ||
| '''text''' || String || Button text for this option. | | '''text''' || String || Button text for this option. | ||
|- | |||
| icon || String || A texture path. The icon is scaled down and displayed to the right of the text. | |||
|- | |- | ||
| value || Any || A value tag for this option. | | value || Any || A value tag for this option. | ||
| Line 87: | Line 93: | ||
|- | |- | ||
| fontObject || Font || Font object used to render the button's text. | | fontObject || Font || Font object used to render the button's text. | ||
|- | |||
| menuList || Table || Table used to store nested menu descriptions for the {{api|EasyMenu}} functionality. | |||
|} | |} | ||
| Line 107: | Line 115: | ||
== Global variables == | == Global variables == | ||
; UIDROPDOWNMENU_OPEN_MENU : Frame handle of the currently open menu. | ; UIDROPDOWNMENU_OPEN_MENU : Frame handle of the currently open menu. | ||
; UIDROPDOWNMENU_INIT_MENU : Frame handle of the | ; UIDROPDOWNMENU_INIT_MENU : Frame handle of the menu currently initializing. | ||
; UIDROPDOWNMENU_MENU_LEVEL : Current menu nesting level. | ; UIDROPDOWNMENU_MENU_LEVEL : Current menu nesting level. | ||
; UIDROPDOWNMENU_MENU_VALUE : Value of the parent node. | ; UIDROPDOWNMENU_MENU_VALUE : Value of the parent node. | ||
| Line 115: | Line 123: | ||
* [[Using UIDropDownMenu]] -- a tutorial. | * [[Using UIDropDownMenu]] -- a tutorial. | ||
* [[API EasyMenu]] -- table-based UIDropDownMenu interface. | * [[API EasyMenu]] -- table-based UIDropDownMenu interface. | ||
[[Category:FrameXML documentation]] | |||