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
Instance Fields
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 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 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 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 |