class flixel.addons.ui.FlxUIRadioGroup extends FlxUIGroup implements IHasParams implements IFlxUIClickable
Available on all platforms
@author Lars Doucet
Class Fields
Instance Fields
function new(X:Float, Y:Float, ids_:Array<String>, labels_:Array<String>, ?callback_:String ->Void = null, ?y_space_:Float = 25, ?width_:Int = 100, ?height_:Int = 20, ?label_width_:Int = 100):Void
Creates a set of radio buttons *
X | X location * |
Y | Y location * |
ids_ | list of string identifiers * |
labels_ | list of string labels for each button (what the user sees) * |
callback_ | optional callback expecting a string identifier of selected radio button * |
y_space_ | vertical space between buttons * |
width_ | maximum width of a button * |
height_ | height of a button * |
label_width_ | maximum width of a label |
function setLineScroll(scroll:Int, max_items:Int):FlxPoint
If you want to show only a portion of the radio group, scrolled line-by-line * This will scroll the "pane" by that amount and return how many lines are above/below * the currently visible pane *
scroll | How many lines DOWN you have scrolled * |
max_items | Max amount of lines visible * |
returns | a FlxPoint of off-pane radio lines : (countabove,countbelow) |