View Single Post
04-26-18, 02:25 AM   #5
arith
A Cyclonian
 
arith's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 45
For UIDropDown, the new stuff is related to Custom Frame. Comments from UIDropDownMenuTemplates.lua:
Lua Code:
  1. -- Custom dropdown buttons are instantiated by some external system.
  2. -- When calling L_UIDropDownMenu_AddButton that system sets info.customFrame to the instance of the frame it wants to place on the menu.
  3. -- The dropdown menu creates its button for the entry as it normally would, but hides all elements.  The custom frame is then anchored
  4. -- to that button and assumes responsibility for all relevant dropdown menu operations.
  5. -- The hidden button will request a size that it should become from the custom frame.

Regarding to the possible workaround mentioned by Ellypse, I think technically it may work. But this would also introduce some problem for other addon's developer when then need to use those UI element.
  Reply With Quote