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
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
Methods
mouseOverlaps():Bool
Check if mouse overlaps the control area.
Returns:
Bool true if mouse overlaps control area, false otherwise.