class flixel.system.frontEnds.ConsoleFrontEnd

Available on all platforms

Instance Fields

var autoPause:Bool

Whether the console should auto-pause or not when it's focused. Only works for flash atm.

function addCommand(Aliases:Array<String>, ProcessFunction:Dynamic, ?Help:String = null, ?ParamHelp:String = null, ?NumParams:Int = 0, ?ParamCutoff:Int = -1):Void

Add a custom command to the console on the debugging screen. * *

Aliases

An array of accepted aliases for this command. *

ProcessFunction

Function to be called with params when the command is entered. *

Help

The description of this command shown in the help command. *

ParamHelp

The description of this command's processFunction's params. *

NumParams

The amount of parameters a function has. Require to prevent crashes on Neko. *

ParamCutoff

At which parameter to put all remaining params into an array

function registerFunction(FunctionAlias:String, Function:Dynamic):Void

Register a new function to use for the call command. * *

FunctionAlias

The name with which you want to access the function. *

Function

The function to register.

function registerObject(ObjectAlias:String, AnyObject:Dynamic):Void

Register a new object to use for the set command. * *

ObjectAlias

The name with which you want to access the object. *

AnyObject

The object to register.