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

Static variables

@:value(new LogStyle("> ", "5A96FA", 12, false))staticCONSOLE:LogStyle = new LogStyle("> ", "5A96FA", 12, false)

@:value(new LogStyle("[ERROR] ", "FF8888", 12, false, false, false, "flixel/sounds/beep", true))staticERROR:LogStyle = new LogStyle("[ERROR] ", "FF8888", 12, false, false, false, "flixel/sounds/beep", true)

@:value(new LogStyle())staticNORMAL:LogStyle = new LogStyle()

@:value(new LogStyle("[NOTICE] ", "5CF878", 12, false))staticNOTICE:LogStyle = new LogStyle("[NOTICE] ", "5CF878", 12, false)

@:value(new LogStyle("[WARNING] ", "D9F85C", 12, false, false, false, "flixel/sounds/beep", true))staticWARNING:LogStyle = new LogStyle("[WARNING] ", "D9F85C", 12, false, false, false, "flixel/sounds/beep", true)

Constructor

@:value({ OpenConsole : false, Underlined : false, Italic : false, Bold : false, Size : 12, Color : "FFFFFF", Prefix : "" })new(Prefix:String = "", Color:String = "FFFFFF", Size:Int = 12, Bold:Bool = false, Italic:Bool = false, Underlined:Bool = false, ?ErrorSound:String, OpenConsole:Bool = false, ?CallbackFunction:() ‑> Void)

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

Parameters:

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.

Variables

errorSound:String

A sound to be played when this LogStyle is used.

openConsole:Bool

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

prefix:String

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

callbackFunction:() ‑> Void

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