class FlxDebugger
package flixel.system.debug
extends Sprite › DisplayObjectContainer › InteractiveObject › DisplayObject › EventDispatcher
Container for the new debugger overlay. Most of the functionality is in the debug folder widgets, but this class instantiates the widgets and handles their basic formatting and arrangement.
Static variables
Variables
Methods
addButton(Position:FlxHorizontalAlign, ?Icon:BitmapData, ?UpHandler:() ‑> Void, ToggleMode:Bool = false, UpdateLayout:Bool = false):FlxSystemButton
Create and add a new debugger button.
Parameters:
Position | Either LEFT, CENTER or RIGHT. |
---|---|
Icon | The icon to use for the button |
UpHandler | The function to be called when the button is pressed. |
ToggleMode | Whether this is a toggle button or not. |
UpdateLayout | Whether to update the button layout. |
Returns:
The added button.
removeButton(Button:FlxSystemButton, UpdateLayout:Bool = true):Void
Removes and destroys a button from the debugger.
Parameters:
Button | The FlxSystemButton instance to remove. |
---|---|
UpdateLayout | Whether to update the button layout. |
resetLayout():Void
Forces the debugger windows to reset to the last specified layout. The default layout is STANDARD.
inlinesetLayout(Layout:FlxDebuggerLayout):Void
Change the way the debugger's windows are laid out.
Parameters:
Layout | The layout codes can be found in FlxDebugger, for example FlxDebugger.MICRO |
---|