WoW:UI Object UIDropDownMenu: Difference between revisions

m
Move page script moved page UI Object UIDropDownMenu to WoW:UI Object UIDropDownMenu without leaving a redirect
m (Move page script moved page UI Object UIDropDownMenu to WoW:UI Object UIDropDownMenu without leaving a redirect)
 
(7 intermediate revisions by 6 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 53: Line 59:
|-
|-
| disabled || Boolean || If true, this button is disabled (cannot be clicked, special formatting)
| disabled || Boolean || If true, this button is disabled (cannot be clicked, special formatting)
|-
| checked || Boolean || If true, this button is checked (tick icon displayed next to it)
|-
|-
| hasArrow || Boolean || If true, this button has an arrow and opens a nested menu.
| hasArrow || Boolean || If true, this button has an arrow and opens a nested menu.
Line 74: Line 82:
| notClickable || Boolean || If true, this button cannot be clicked.
| notClickable || Boolean || If true, this button cannot be clicked.
|-
|-
| notCheckable || String || If true, this button cannot be checked (selected)
| notCheckable || String || If true, this button cannot be checked (selected) - this also moves the button to the left, since there's no space stored for the tick-icon
|-
|-
| keepShownOnClick || Boolean || If true, the menu isn't hidden when this button is clicked.
| keepShownOnClick || Boolean || If true, the menu isn't hidden when this button is clicked.
Line 85: 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 105: 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 currently menu currently initializing.
; 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 113: 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]]
Anonymous user