class flixel.addons.ui.FlxUIColorSwatchSelecter extends FlxUIGroup implements IFlxUIClickable
Available on all platforms
... * @author larsiusprime
Class Fields
Instance Fields
function new(X:Float, Y:Float, ?SelectionSprite:FlxSprite = null, ?list_colors:Array<Int> = null, ?list_data:Array<SwatchData> = null, ?list_swatches:Array<FlxUIColorSwatch> = null, ?SpacingH:Int = 2, ?SpacingV:Int = 2, ?MaxColumns:Int = -1):Void
A handy little group for selecting color swatches from *
X | X location * |
Y | Y location * |
?SelectionSprite | The selection box sprite (optional, auto-generated if not supplied) * |
?list_colors | A list of single-colors to generate swatches from. 1st of 3 alternatives. * |
?list_data | A list of swatch data to generate swatches from. 2nd of 3 alternatives. * |
?list_swatches | A list of the actual swatch widgets themselves. 3rd of 3 alternatives. * |
SpacingH | Horizontal spacing between swatches * |
SpacingV | Vertical spacing between swatches * |
MaxColumns | Number of horizontal swatches in a row before a line break |