class flixel.system.debug.FlxDebugger extends Sprite

Available on all platforms

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.

Class Fields

static var GUTTER:Int

Internal, used to space out windows from the edges.

static var TOP_HEIGHT:Int

Internal, used to space out windows from the edges.

Instance Fields

var console:Console

Container for console.

var hasMouse:Bool

Whether the mouse is currently over one of the debugger windows or not.

var log:Log

Container for the trace output widget.

var stats:Stats

Container for the performance monitor widget.

var vcr:VCR

Container for the record, stop and play buttons.

var watch:Watch

Container for the watch window widget.

function addButton(Position:ButtonAlignment, ?Icon:BitmapData = null, ?UpHandler:Void ->Void = null, ?ToggleMode:Bool = false, ?UpdateLayout:Bool = false):FlxSystemButton

Create and add a new debugger button. * *

Position

Either LEFT, MIDDLE 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.

function addWindow(window:Window):Window

function destroy():Void

Clean up memory.

function hAlignButtons(Sprites:Array<FlxSystemButton>, ?Padding:Float = 0, ?Set:Bool = true, ?LeftOffset:Float = 0):Float

Align an array of debugger buttons, used for the middle and right layouts

function onResize(Width:Float, Height:Float):Void

function onStateSwitch():Void

function removeButton(Button:FlxSystemButton, ?UpdateLayout:Bool = true):Void

Removes and destroys a button from the debugger. * *

Button

The FlxSystemButton instance to remove. *

UpdateLayout

Whether to update the button layout.

function removeWindow(window:Window):Void

function resetButtonLayout():Void

Position the debugger buttons

function resetLayout():Void

Forces the debugger windows to reset to the last specified layout. * The default layout is STANDARD.

function setLayout(Layout:DebuggerLayout):Void

Change the way the debugger's windows are laid out. * *

Layout

The layout codes can be found in FlxDebugger, for example FlxDebugger.MICRO

function update():Void