Dropdown button attributes
From WoWWiki
- info.text
- [STRING] The text of the button
- info.value
- [ANYTHING] The value that UIDROPDOWNMENU_MENU_VALUE is set to when the button is clicked
- info.func
- [function()] The function that is called when you click the button
- info.checked
- [nil, 1] Check the button
- info.isTitle
- [nil, 1] If it's a title the button is disabled and the font color is set to yellow
- info.disabled
- [nil, 1] Disable the button and show an invisible button that still traps the mouseover event so menu doesn't time out
- info.hasArrow
- [nil, 1] Show the expand arrow for multilevel menus
- info.hasColorSwatch
- [nil, 1] Show color swatch or not, for color selection
- info.r
- [1 - 255] Red color value of the color swatch
- info.g
- [1 - 255] Green color value of the color swatch
- info.b
- [1 - 255] Blue color value of the color swatch
- info.textR
- [1 - 255] Red color value of the button text
- info.textG
- [1 - 255] Green color value of the button text
- info.textB
- [1 - 255] Blue color value of the button text
- info.swatchFunc
- [function()] Function called by the color picker on color change
- info.hasOpacity
- [nil, 1] Show the opacity slider on the colorpicker frame
- info.opacity
- [0.0 - 1.0] Percentatge of the opacity, 1.0 is fully shown, 0 is transparent
- info.opacityFunc
- [function()] Function called by the opacity slider when you change its value
- info.cancelFunc
- [function(previousValues)] Function called by the colorpicker when you click the cancel button (it takes the previous values as its argument)
- info.notClickable
- [nil, 1] Disable the button and color the font white
- info.notCheckable
- [nil, 1] Shrink the size of the buttons and don't display a check box
- info.owner
- [Frame] Dropdown frame that "owns" the current dropdownlist
- info.keepShownOnClick
- [nil, 1] Don't hide the dropdownlist after a button is clicked
- info.tooltipTitle
- [nil, STRING] Title of the tooltip shown on mouseover
- info.tooltipText
- [nil, STRING] Text of the tooltip shown on mouseover
- info.justifyH
- [nil, "CENTER"] Justify button text
- info.arg1
- [ANYTHING] This is the first argument used by info.func
- info.arg2
- [ANYTHING] This is the second argument used by info.func
- info.textHeight
- [NUMBER] font height for button text
