class flixel.addons.ui.FlxUIList extends FlxUIGroup

Available on all platforms

... * @author

Class Fields

static var STACK_VERTICAL:Int

Instance Fields

function new(?X:Float = 0, ?Y:Float = 0, ?Widgets:Array<IFlxUIWidget> = null, ?W:Float = 0, ?H:Float = 0, ?MoreString:String = '<X> more...', ?Stacking:Int = 1, ?Spacing:Float = 0, ?PrevButtonOffset:FlxPoint = null, ?NextButtonOffset:FlxPoint = null, ?PrevButton:IFlxUIButton = null, ?NextButton:IFlxUIButton = null):Void

Creates a scrollable list of widgets *

X

X position of the list *

Y

Y position of the list *

?Widgets

List of widgets themselves (optional) *

W

Width of the invisible "canvas" available for putting widgets in before we have to scroll to see more *

H

Height of the invisible "canvas" available for putting widgets in before we have to scroll to see more *

?MoreString

String that says " more..." in your language (must use variable!) *

?Stacking

How to stack the widgets? STACKHORIZONTAL or STACKVERTICAL *

?Spacing

Space between widgets *

PrevButtonOffset

Offset for Scroll - Button *

NextButtonOffset

Offset for Scroll + Button *

PrevButton

Button to Scroll - *

NextButton

Button to Scroll +

function destroy():Void

function setSize(W:Float, H:Float):Void

function set_scrollIndex(i:Int):Int

function set_spacing(Spacing:Float):Float

function set_stacking(Stacking:Int):Int