| Package | org.flixel.system.debug |
| Class | public class Vis |
| Inheritance | Vis flash.display.Sprite |
| Property | Defined By | ||
|---|---|---|---|
| _bounds : Bitmap | Vis | ||
| ImgBounds : Class | Vis | ||
| _overBounds : Boolean | Vis | ||
| _pressingBounds : Boolean | Vis | ||
| Method | Defined By | ||
|---|---|---|---|
Vis()
Instantiate the visual debugger panel. | Vis | ||
destroy():void
Clean up memory. | Vis | ||
onBounds():void
Called when the bounding box toggle is pressed. | Vis | ||
| Method | Defined By | ||
|---|---|---|---|
checkOver():Boolean
This function checks to see what button the mouse is currently over. | Vis | ||
init(E:Event = null):void
Just sets up basic mouse listeners, a la FlxWindow. | Vis | ||
onMouseDown(E:MouseEvent = null):void
If the mouse is pressed down, check to see if the user started pressing down a specific button. | Vis | ||
onMouseMove(E:MouseEvent = null):void
If the mouse moves, check to see if any buttons should be highlighted. | Vis | ||
onMouseUp(E:MouseEvent = null):void
If the mouse is released, check to see if it was released over a button that was pressed. | Vis | ||
unpress():void
Sets all the pressed state variables for the buttons to false. | Vis | ||
updateGUI():void
Figures out what buttons to highlight based on the _overWhatever and _pressingWhatever variables. | Vis | ||
| _bounds | property |
protected var _bounds:Bitmap| _overBounds | property |
protected var _overBounds:Boolean| _pressingBounds | property |
protected var _pressingBounds:Boolean| ImgBounds | property |
protected var ImgBounds:Class| Vis | () | Constructor |
public function Vis()Instantiate the visual debugger panel.
| checkOver | () | method |
protected function checkOver():BooleanThis function checks to see what button the mouse is currently over. Has some special behavior based on whether a recording is happening or not.
ReturnsBoolean — Whether the mouse was over any buttons or not.
|
| destroy | () | method |
public function destroy():voidClean up memory.
| init | () | method |
protected function init(E:Event = null):voidJust sets up basic mouse listeners, a la FlxWindow.
Parameters
E:Event (default = null) — Flash event.
|
| onBounds | () | method |
public function onBounds():voidCalled when the bounding box toggle is pressed.
| onMouseDown | () | method |
protected function onMouseDown(E:MouseEvent = null):voidIf the mouse is pressed down, check to see if the user started pressing down a specific button.
Parameters
E:MouseEvent (default = null) — Flash mouse event.
|
| onMouseMove | () | method |
protected function onMouseMove(E:MouseEvent = null):voidIf the mouse moves, check to see if any buttons should be highlighted.
Parameters
E:MouseEvent (default = null) — Flash mouse event.
|
| onMouseUp | () | method |
protected function onMouseUp(E:MouseEvent = null):voidIf the mouse is released, check to see if it was released over a button that was pressed. If it was, take the appropriate action based on button state and visibility.
Parameters
E:MouseEvent (default = null) — Flash mouse event.
|
| unpress | () | method |
protected function unpress():voidSets all the pressed state variables for the buttons to false.
| updateGUI | () | method |
protected function updateGUI():voidFigures out what buttons to highlight based on the _overWhatever and _pressingWhatever variables.