Class: UIRadio

UIRadio(callback, context, position, text, textSize, textColor, aCamera) → {UIRadio}

new UIRadio(callback, context, position, text, textSize, textColor, aCamera) → {UIRadio}

A UI class use to assosiate radio buttons with each ohter
Parameters:
Name Type Description
callback function The function to be called when the button is released
context object The owner of the callback function
position Array.<Array> The base position for the UIRButton
text string The text for the UIRButton
textSize int The size for the text
textColor Array.<Array> The color for the text
aCamera Camera The camera that the Radio list will be drawned on
Source:
Returns:
Type
UIRadio

Methods

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

Creates a UIRButton and adds it to the set
Parameters:
Name Type Description
callback function The function to be called when the button is released
context object The owner of the callback function
text string The text for the UIRButton
textColor Array.<Array> The color for the text
aCamera Camera the camera drawing the button
Source:

update()

Updates all the radio buttons assigned to an instance of this class
Source: