1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
--[[
Standard combo box ui widget for keyboard screens.
Uses a custom control definition with the box border, selected item label, and a dropdown button.
The actual combobox menu is implemented using a ZO_ContextMenu. The anchoring of the menu is managed
by the combo box.
--]]
ZO_COMBOBOX_UPDATE_NOW = 1
ZO_COMBOBOX_SUPRESS_UPDATE = 2
return comboBox
end
do
-- The variable item must be defined locally here, otherwise it won't work as an upvalue to the selection helper
AddMenuItem ( item . name , function ( ) ZO_ComboBox_Base_ItemSelectedClickHelper ( self , item ) end , nil , self . m_font , self . m_normalColor , self . m_highlightColor )
end
end
local OFFSET_Y = 0
end
-- Just stealing the menu from anything else that's using it. That should be correct.
end
end
end |