Class: UIDropDown

UIDropDown(position, text, textSize, textColor, boxColor) → {UIDropDown}

new UIDropDown(position, text, textSize, textColor, boxColor) → {UIDropDown}

A UI class use to assosiate DropDown buttons with each ohter
Parameters:
Name Type Description
position Array.<Array> The base location for the list
text String The initial text for the head button
textSize int the size of the text
textColor Array.<Array> the color for the text
boxColor Array.<Array> the color for the box
Source:
Returns:
Type
UIDropDown

Methods

addToSet(text, textColor, boxColor, callback, context, aCamera)

Adds an entry to the list
Parameters:
Name Type Description
text String The text for the new button
textColor Array.<Array> The color for the text
boxColor Array.<Array> The color for the box
callback function The function that is called when this button is clicked
context object The object that is calling the callback function
aCamera Camera The camera that is drawing the list
Source:

draw(aCamera)

Draws the DropDownList
Parameters:
Name Type Description
aCamera Camera The camera the list will be drawon on
Source:

flipVisible()

Flips the visibility of all buttons in the list except the head button
Source:

getHeadButton() → {UIDDButton}

Gets the head button of the list
Source:
Returns:
Type
UIDDButton

update(aCamera)

Updates all the DropDown buttons assigned to an instance of this class
Parameters:
Name Type Description
aCamera Camera The camera that is drawing the list
Source: