class flixel.system.frontEnds.DebuggerFrontEnd
Available on all platforms
Instance Fields
var toggleKeys:Array<String>
The key codes used to toggle the debugger (see FlxG.keys for the keys available). * Default keys: ` and \. Set to null to deactivate.
function addButton(Alignment:ButtonAlignment, Icon:BitmapData, UpHandler:Void ->Void, ?ToggleMode:Bool = false, ?UpdateLayout:Bool = true):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 addTrackerProfile(Profile:TrackerProfile):Void
Adds a new TrackerProfile for track(). This also overrides existing profiles. * *
Profile | The TrackerProfile |
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
Just resets the debugger windows to whatever the last selected layout was (STANDARD by default).
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 track(Object:Dynamic, ?WindowTitle:String = null):Window
Creates a new tracker window, if there exists a tracking profile for the class of the object. * By default, flixel classes like FlxBasics, FlxRect and FlxPoint are supported. * *
Object | The object to track * |
WindowTitle | Title for the tracker window, uses the Object's class name by default |