Controls provide a sprite group which can contain a collection of controls which can control the various aspects of the shader active in the demo.

Static variables

@:value(50)staticfinalread onlyLINE_X:Int = 50

Constructor

new(xLoc:Float, yLoc:Float, xSize:Int, ySize:Int, uiElts:Array<FlxSprite>, camera:FlxCamera)

Create a new Controls object.

Parameters:

xLoc

the x position to place the group at.

yLoc

the y position to place the group at.

xSize

the width of the controls pane.

ySize

the height of the controls pane.

uiElts

an Array of FlxSprites to add to the control pane

Variables

read only_controls:FlxSpriteGroup

Methods

mouseOverlaps():Bool

Check if mouse overlaps the control area.

Returns:

Bool true if mouse overlaps control area, false otherwise.