class flixel.system.debug.LogStyle

Available on all platforms

A class that allows you to create a custom style for FlxG.log.advanced(). * Also used internally for the pre-defined styles.

Class Fields

static var CONSOLE:LogStyle

static var ERROR:LogStyle

static var NORMAL:LogStyle

static var NOTICE:LogStyle

static var WARNING:LogStyle

Instance Fields

var callbackFunction:Dynamic

A callback function that is called when this LogStyle is used.

var errorSound:String

A sound to be played when this LogStyle is used.

var openConsole:Bool

Whether the console should be forced to open when this LogStyle is used.

var prefix:String

A prefix which is always attached to the start of the logged data.

var size:Int

function new(?Prefix:String = '', ?Color:String = 'FFFFFF', ?Size:Int = 12, ?Bold:Bool = false, ?Italic:Bool = false, ?Underlined:Bool = false, ?ErrorSound:String = null, ?OpenConsole:Bool = false, ?CallbackFunction:Void ->Void = null):Void

Create a new LogStyle to be used in conjunction with FlxG.log.advanced() * *

Prefix

A prefix which is always attached to the start of the logged data. *

Color

The text color. *

Size

The text size. *

Bold

Whether the text is bold or not. *

Italic

Whether the text is italic or not. *

Underlined

Whether the text is underlined or not. *

ErrorSound

A sound to be played when this LogStyle is used. *

OpenConsole

Whether the console should be forced to open when this LogStyle is used. *

CallbackFunction

A callback function that is called when this LogStyle is used.