diff --git a/flixel/FlxCamera.html b/flixel/FlxCamera.html index b25cc48d50..89a1aa6c0d 100644 --- a/flixel/FlxCamera.html +++ b/flixel/FlxCamera.html @@ -69,10 +69,10 @@ screen coordinates.

Available since

4.3.0

.

inlinecontainsRect(rect:FlxRect):Bool

Checks whether this camera contains a given rectangle, in screen coordinates.

Available since

4.11.0

.

copyFrom(Camera:FlxCamera):FlxCamera

Copy the bounds, focus object, and deadzone info from an existing camera.

Parameters:

Camera

The camera you want to copy from.

Returns:

A reference to this FlxCamera object.

@:value({ smoothing : false })copyPixels(?frame:FlxFrame, ?pixels:BitmapData, ?sourceRect:Rectangle, destPoint:Point, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

destroy():Void

Clean up memory.

@:value({ smoothing : false })drawPixels(?frame:FlxFrame, ?pixels:BitmapData, matrix:FlxMatrix, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

@:value({ smoothing : false, repeat : false })drawTriangles(graphic:FlxGraphic, vertices:DrawData<Float>, indices:DrawData<Int>, uvtData:DrawData<Float>, ?colors:DrawData<Int>, ?position:FlxPoint, ?blend:BlendMode, repeat:Bool = false, smoothing:Bool = false, ?transform:ColorTransform, ?shader:Null<FlxShader>):Void

@:value({ Force : false, FadeIn : false, Duration : 1, Color : FlxColor.BLACK })fade(Color:FlxColor = FlxColor.BLACK, Duration:Float = 1, FadeIn:Bool = false, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is gradually filled with this color.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the fade to finish.

FadeIn

true fades from a color, false fades to it.

OnComplete

A function you want to run when the fade finishes.

Force

Force the effect to reset.

@:value({ FxAlpha : 1.0, BlendAlpha : true })fill(Color:FlxColor, BlendAlpha:Bool = true, FxAlpha:Float = 1.0, ?graphics:Graphics):Void

Fill the camera with the specified color.

Parameters:

Color

The color to fill with in 0xAARRGGBB hex format.

BlendAlpha

Whether to blend the alpha value or just wipe the previous contents. Default is true.

@:value({ Force : false, Duration : 1, Color : FlxColor.WHITE })flash(Color:FlxColor = FlxColor.WHITE, Duration:Float = 1, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is filled with this color and gradually returns to normal.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the flash to fade.

OnComplete

A function you want to run when the flash finishes.

Force

Force the effect to reset.

inlinefocusOn(point:FlxPoint):Void

Move the camera focus to this location instantly.

Parameters:

Point

Where you want the camera to focus.

follow(Target:FlxObject, ?Style:FlxCameraFollowStyle, ?Lerp:Float):Void

Tells this camera object what FlxObject to track.

Parameters:

Target

The object you want the camera to track. Set to null to not follow anything.

Style

Leverage one of the existing "deadzone" presets. Default is LOCKON. If you use a custom deadzone, ignore this parameter and manually specify the deadzone after calling follow().

Lerp

How much lag the camera should have (can help smooth out the camera movement).

getViewMarginRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth -and viewHeight.

Available since

5.2.0

.

@deprecated("getViewMarginRect")getViewRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth +and viewHeight.

Available since

5.2.0

.

getViewRect(?rect:FlxRect):FlxRect

Deprecated: "getViewRect is deprecated, use getViewMarginRect"

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth and viewHeight.

Notes: Deprecated, in 4.11.0 this was made public, but the wording is confusing. -In flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, +After flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, meaning, this will return the world coordinates of the camera.

Available since

4.11.0

.

onResize():Void

Called by camera front end every time you resize the game. It triggers reposition of camera's internal display objects.

setFilters(filters:Array<BitmapFilter>):Void

Deprecated: "setFilters() is deprecated, use the filters array instead"

Sets the filter array to be applied to the camera.

@:value({ Y : 0, X : 0 })inlinesetPosition(X:Float = 0, Y:Float = 0):Void

Helper function to set the coordinates of this camera. Handy since it only requires one line of code.

Parameters:

X

The new x position.

Y

The new y position.

setScale(X:Float, Y:Float):Void

Helper function to set the scale of this camera. diff --git a/flixel/addons/display/FlxShaderMaskCamera.html b/flixel/addons/display/FlxShaderMaskCamera.html index 6f1202d630..4a38b86066 100644 --- a/flixel/addons/display/FlxShaderMaskCamera.html +++ b/flixel/addons/display/FlxShaderMaskCamera.html @@ -75,10 +75,10 @@ screen coordinates.

Available since

4.3.0

.

inlinecontainsRect(rect:FlxRect):Bool

Checks whether this camera contains a given rectangle, in screen coordinates.

Available since

4.11.0

.

copyFrom(Camera:FlxCamera):FlxCamera

Copy the bounds, focus object, and deadzone info from an existing camera.

Parameters:

Camera

The camera you want to copy from.

Returns:

A reference to this FlxCamera object.

@:value({ smoothing : false })copyPixels(?frame:FlxFrame, ?pixels:BitmapData, ?sourceRect:Rectangle, destPoint:Point, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

@:value({ smoothing : false })drawPixels(?frame:FlxFrame, ?pixels:BitmapData, matrix:FlxMatrix, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

@:value({ smoothing : false, repeat : false })drawTriangles(graphic:FlxGraphic, vertices:DrawData<Float>, indices:DrawData<Int>, uvtData:DrawData<Float>, ?colors:DrawData<Int>, ?position:FlxPoint, ?blend:BlendMode, repeat:Bool = false, smoothing:Bool = false, ?transform:ColorTransform, ?shader:Null<FlxShader>):Void

@:value({ Force : false, FadeIn : false, Duration : 1, Color : FlxColor.BLACK })fade(Color:FlxColor = FlxColor.BLACK, Duration:Float = 1, FadeIn:Bool = false, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is gradually filled with this color.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the fade to finish.

FadeIn

true fades from a color, false fades to it.

OnComplete

A function you want to run when the fade finishes.

Force

Force the effect to reset.

@:value({ Force : false, Duration : 1, Color : FlxColor.WHITE })flash(Color:FlxColor = FlxColor.WHITE, Duration:Float = 1, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is filled with this color and gradually returns to normal.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the flash to fade.

OnComplete

A function you want to run when the flash finishes.

Force

Force the effect to reset.

inlinefocusOn(point:FlxPoint):Void

Move the camera focus to this location instantly.

Parameters:

Point

Where you want the camera to focus.

follow(Target:FlxObject, ?Style:FlxCameraFollowStyle, ?Lerp:Float):Void

Tells this camera object what FlxObject to track.

Parameters:

Target

The object you want the camera to track. Set to null to not follow anything.

Style

Leverage one of the existing "deadzone" presets. Default is LOCKON. If you use a custom deadzone, ignore this parameter and manually specify the deadzone after calling follow().

Lerp

How much lag the camera should have (can help smooth out the camera movement).

getViewMarginRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth -and viewHeight.

Available since

5.2.0

.

@deprecated("getViewMarginRect")getViewRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth +and viewHeight.

Available since

5.2.0

.

getViewRect(?rect:FlxRect):FlxRect

Deprecated: "getViewRect is deprecated, use getViewMarginRect"

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth and viewHeight.

Notes: Deprecated, in 4.11.0 this was made public, but the wording is confusing. -In flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, +After flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, meaning, this will return the world coordinates of the camera.

Available since

4.11.0

.

onResize():Void

Called by camera front end every time you resize the game. It triggers reposition of camera's internal display objects.

setFilters(filters:Array<BitmapFilter>):Void

Deprecated: "setFilters() is deprecated, use the filters array instead"

Sets the filter array to be applied to the camera.

@:value({ Y : 0, X : 0 })inlinesetPosition(X:Float = 0, Y:Float = 0):Void

Helper function to set the coordinates of this camera. Handy since it only requires one line of code.

Parameters:

X

The new x position.

Y

The new y position.

setScale(X:Float, Y:Float):Void

Helper function to set the scale of this camera. diff --git a/flixel/addons/display/FlxZoomCamera.html b/flixel/addons/display/FlxZoomCamera.html index 0ba1733eb9..a8fea20819 100644 --- a/flixel/addons/display/FlxZoomCamera.html +++ b/flixel/addons/display/FlxZoomCamera.html @@ -58,10 +58,10 @@ screen coordinates.

Available since

4.3.0

.

inlinecontainsRect(rect:FlxRect):Bool

Checks whether this camera contains a given rectangle, in screen coordinates.

Available since

4.11.0

.

copyFrom(Camera:FlxCamera):FlxCamera

Copy the bounds, focus object, and deadzone info from an existing camera.

Parameters:

Camera

The camera you want to copy from.

Returns:

A reference to this FlxCamera object.

@:value({ smoothing : false })copyPixels(?frame:FlxFrame, ?pixels:BitmapData, ?sourceRect:Rectangle, destPoint:Point, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

destroy():Void

Clean up memory.

@:value({ smoothing : false })drawPixels(?frame:FlxFrame, ?pixels:BitmapData, matrix:FlxMatrix, ?transform:ColorTransform, ?blend:BlendMode, smoothing:Bool = false, ?shader:Null<FlxShader>):Void

@:value({ smoothing : false, repeat : false })drawTriangles(graphic:FlxGraphic, vertices:DrawData<Float>, indices:DrawData<Int>, uvtData:DrawData<Float>, ?colors:DrawData<Int>, ?position:FlxPoint, ?blend:BlendMode, repeat:Bool = false, smoothing:Bool = false, ?transform:ColorTransform, ?shader:Null<FlxShader>):Void

@:value({ Force : false, FadeIn : false, Duration : 1, Color : FlxColor.BLACK })fade(Color:FlxColor = FlxColor.BLACK, Duration:Float = 1, FadeIn:Bool = false, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is gradually filled with this color.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the fade to finish.

FadeIn

true fades from a color, false fades to it.

OnComplete

A function you want to run when the fade finishes.

Force

Force the effect to reset.

@:value({ FxAlpha : 1.0, BlendAlpha : true })fill(Color:FlxColor, BlendAlpha:Bool = true, FxAlpha:Float = 1.0, ?graphics:Graphics):Void

Fill the camera with the specified color.

Parameters:

Color

The color to fill with in 0xAARRGGBB hex format.

BlendAlpha

Whether to blend the alpha value or just wipe the previous contents. Default is true.

@:value({ Force : false, Duration : 1, Color : FlxColor.WHITE })flash(Color:FlxColor = FlxColor.WHITE, Duration:Float = 1, ?OnComplete:() ‑> Void, Force:Bool = false):Void

The screen is filled with this color and gradually returns to normal.

Parameters:

Color

The color you want to use.

Duration

How long it takes for the flash to fade.

OnComplete

A function you want to run when the flash finishes.

Force

Force the effect to reset.

inlinefocusOn(point:FlxPoint):Void

Move the camera focus to this location instantly.

Parameters:

Point

Where you want the camera to focus.

follow(Target:FlxObject, ?Style:FlxCameraFollowStyle, ?Lerp:Float):Void

Tells this camera object what FlxObject to track.

Parameters:

Target

The object you want the camera to track. Set to null to not follow anything.

Style

Leverage one of the existing "deadzone" presets. Default is LOCKON. If you use a custom deadzone, ignore this parameter and manually specify the deadzone after calling follow().

Lerp

How much lag the camera should have (can help smooth out the camera movement).

getViewMarginRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth -and viewHeight.

Available since

5.2.0

.

@deprecated("getViewMarginRect")getViewRect(?rect:FlxRect):FlxRect

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth +and viewHeight.

Available since

5.2.0

.

getViewRect(?rect:FlxRect):FlxRect

Deprecated: "getViewRect is deprecated, use getViewMarginRect"

The size and position of this camera's margins, via viewMarginLeft, viewMarginTop, viewWidth and viewHeight.

Notes: Deprecated, in 4.11.0 this was made public, but the wording is confusing. -In flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, +After flixel 6.0.0 this will be changed to use viewX, viewY, viewWidth and viewHeight, meaning, this will return the world coordinates of the camera.

Available since

4.11.0

.

onResize():Void

Called by camera front end every time you resize the game. It triggers reposition of camera's internal display objects.

setFilters(filters:Array<BitmapFilter>):Void

Deprecated: "setFilters() is deprecated, use the filters array instead"

Sets the filter array to be applied to the camera.

@:value({ Y : 0, X : 0 })inlinesetPosition(X:Float = 0, Y:Float = 0):Void

Helper function to set the coordinates of this camera. Handy since it only requires one line of code.

Parameters:

X

The new x position.

Y

The new y position.

setScale(X:Float, Y:Float):Void

Helper function to set the scale of this camera. diff --git a/flixel/addons/plugin/control/FlxControlHandler.html b/flixel/addons/plugin/control/FlxControlHandler.html index e9fbc69cde..119b352313 100644 --- a/flixel/addons/plugin/control/FlxControlHandler.html +++ b/flixel/addons/plugin/control/FlxControlHandler.html @@ -36,7 +36,7 @@ Gravity is given in pixels per second and is applied as acceleration. The speed the sprite reaches under gravity will never exceed the Maximum Movement Speeds set. If you don't want gravity for a specific direction pass a value of zero.

Parameters:

forceX

A positive value applies gravity dragging the sprite to the right. A negative value drags the sprite to the left. Zero disables horizontal gravity.

forceY

A positive value applies gravity dragging the sprite down. A negative value drags the sprite up. Zero disables vertical gravity.

@:value({ allowRight : true, allowLeft : true, allowDown : true, allowUp : true })setHJKLControl(allowUp:Bool = true, allowDown:Bool = true, allowLeft:Bool = true, allowRight:Bool = true):Void

Enables HJKL (Rogue / Net-Hack) controls. Can be set on a per-key basis. Useful if you only want to allow a few keys. For example in a Space Invaders game you'd only enable LEFT and RIGHT.

Parameters:

allowUp

Enable the up (K) key

allowDown

Enable the down (J) key

allowLeft

Enable the left (H) key

allowRight

Enable the right (L) key

@:value({ allowRight : true, allowLeft : true, allowDown : true, allowUp : true })setIJKLControl(allowUp:Bool = true, allowDown:Bool = true, allowLeft:Bool = true, allowRight:Bool = true):Void

Enables IJKL (right-sided or secondary player) controls. Can be set on a per-key basis. Useful if you only want to allow a few keys. -For example in a Space Invaders game you'd only enable LEFT and RIGHT.

Parameters:

allowUp

Enable the up (I) key

allowDown

Enable the down (K) key

allowLeft

Enable the left (J) key

allowRight

Enable the right (L) key

@:value({ altKey : "", jumpFromFall : 0, repeatDelay : 250 })setJumpButton(key:String, keymode:Int, height:Int, surface:Int, repeatDelay:Int = 250, jumpFromFall:Int = 0, ?callback:() ‑> Void, altKey:String = ""):Void

Enable a jump button

Parameters:

key

The key to use as the jump button (String from flixel.system.input.Keyboard, i.e. "SPACE", "CONTROL")

keymode

The FlxControlHandler KEYMODE value (KEYMODE_PRESSED, KEYMODE_JUST_DOWN, KEYMODE_RELEASED)

height

The height in pixels/sec that the Sprite will attempt to jump (gravity and acceleration can influence this actual height obtained)

surface

A bitwise combination of all valid surfaces the Sprite can jump off (such as FLOOR)

repeatDelay

Time delay in ms between which the jumping can repeat (250 would be 4 times per second)

jumpFromFall

A time in ms that allows the Sprite to still jump even if it's just fallen off a platform, if still within ths time limit

callback

A user defined function to call when the Sprite jumps

altKey

Specify an alternative jump key that works AS WELL AS the primary jump key (TODO)

@:value({ limitVelocity : true })setMaximumRotationSpeed(speed:Float, limitVelocity:Bool = true):Void

Sets the maximum speed (in pixels per second) that the FlxSprite can rotate. +For example in a Space Invaders game you'd only enable LEFT and RIGHT.

Parameters:

allowUp

Enable the up (I) key

allowDown

Enable the down (K) key

allowLeft

Enable the left (J) key

allowRight

Enable the right (L) key

@:value({ altKey : "", jumpFromFall : 0, repeatDelay : 250 })setJumpButton(key:String, keymode:Int, height:Int, surface:FlxDirectionFlags, repeatDelay:Int = 250, jumpFromFall:Int = 0, ?callback:() ‑> Void, altKey:String = ""):Void

Enable a jump button

Parameters:

key

The key to use as the jump button (String from flixel.system.input.Keyboard, i.e. "SPACE", "CONTROL")

keymode

The FlxControlHandler KEYMODE value (KEYMODE_PRESSED, KEYMODE_JUST_DOWN, KEYMODE_RELEASED)

height

The height in pixels/sec that the Sprite will attempt to jump (gravity and acceleration can influence this actual height obtained)

surface

A bitwise combination of all valid surfaces the Sprite can jump off (such as FLOOR)

repeatDelay

Time delay in ms between which the jumping can repeat (250 would be 4 times per second)

jumpFromFall

A time in ms that allows the Sprite to still jump even if it's just fallen off a platform, if still within ths time limit

callback

A user defined function to call when the Sprite jumps

altKey

Specify an alternative jump key that works AS WELL AS the primary jump key (TODO)

@:value({ limitVelocity : true })setMaximumRotationSpeed(speed:Float, limitVelocity:Bool = true):Void

Sets the maximum speed (in pixels per second) that the FlxSprite can rotate. When the FlxSprite is accelerating (movement type MOVEMENT_ACCELERATES) its speed won't increase above this value. However Flixel allows the velocity of an FlxSprite to be set to anything. So if you'd like to check the value and restrain it, then enable "limitVelocity".

Parameters:

speed

The maximum speed in pixels per second in which the sprite can rotate

limitVelocity

If true the angular velocity of the FlxSprite will be checked and kept within the limit. If false it can be set to anything.

@:value({ limitVelocity : true })setMaximumSpeed(speedX:Int, speedY:Int, limitVelocity:Bool = true):Void

Sets the maximum speed (in pixels per second) that the FlxSprite can move. You can set the horizontal and vertical speeds independantly. When the FlxSprite is accelerating (movement type MOVEMENT_ACCELERATES) its speed won't increase above this value. diff --git a/flixel/system/FlxVersion.html b/flixel/system/FlxVersion.html index 4ad422b38b..13d5b646ac 100644 --- a/flixel/system/FlxVersion.html +++ b/flixel/system/FlxVersion.html @@ -7,6 +7,6 @@ float: none; text-shadow: 0 0 0 transparent; } -

Helper object for semantic versioning.

See also:

Static variables

@:value("b247edbfd871e3104718f95d25c5af0eff41bd56\n")staticread onlysha:Dynamic = "b247edbfd871e3104718f95d25c5af0eff41bd56\n"

Constructor

new(Major:Int, Minor:Int, Patch:Int)

Variables

read onlymajor:Int

read onlyminor:Int

read onlypatch:Int

Methods

toString():String

Formats the version in the format "HaxeFlixel MAJOR.MINOR.PATCH-COMMIT_SHA", +

Helper object for semantic versioning.

See also:

Static variables

@:value("34655345c0dd05353aee3d610d90a5b4cecae239\n")staticread onlysha:Dynamic = "34655345c0dd05353aee3d610d90a5b4cecae239\n"

Constructor

new(Major:Int, Minor:Int, Patch:Int)

Variables

read onlymajor:Int

read onlyminor:Int

read onlypatch:Int

Methods

toString():String

Formats the version in the format "HaxeFlixel MAJOR.MINOR.PATCH-COMMIT_SHA", e.g. HaxeFlixel 3.0.4. If this is a dev version, the git sha is included.

\ No newline at end of file diff --git a/flixel/system/debug/log/LogStyle.html b/flixel/system/debug/log/LogStyle.html index c30fa47e83..89a31813d3 100644 --- a/flixel/system/debug/log/LogStyle.html +++ b/flixel/system/debug/log/LogStyle.html @@ -9,5 +9,7 @@ text-shadow: 0 0 0 transparent; }

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({ throwException : false, openConsole : false, underlined : false, italic : false, bold : false, size : 12, color : "FFFFFF", prefix : "" })@:haxe.warning("-WDeprecated")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, ?callback:Any ‑> Void, throwException:Bool = false)

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

callback

A callback function that is called when this LogStyle is used

throwError

Whether an error is thrown 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

@:value(false)throwException:Bool = false

Whether an exception is thrown when this LogStyle is used. -Note: Unlike other log style properties, this happens even in release mode.

Available since

5.4.0

.

callback:(data:Any) ‑> Void

A callback function that is called when this LogStyle is used

callbackFunction:() ‑> Void

Deprecated: "callbackFunction is deprecated, use callback, instead"

A callback function that is called when this LogStyle is used

Methods

inlinetoHtmlString(data:Array<Any>):String

Converts the data into an html log message according to this style.

Parameters:

data

The data being logged

toLogString(data:Array<Any>):String

Converts the data into a log message according to this style.

Parameters:

data

The data being logged

\ No newline at end of file +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({ throwException : false, openConsole : false, underlined : false, italic : false, bold : false, size : 12, color : "FFFFFF", prefix : "" })@:haxe.warning("-WDeprecated")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, ?callback:Any ‑> Void, throwException:Bool = false)

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

callback

A callback function that is called when this LogStyle is used

throwError

Whether an error is thrown when this LogStyle is used

Variables

errorSound:String

A sound to be played when this LogStyle is used

@:value(new FlxTypedSignal<data:Any>())finalonLog:FlxTypedSignal<(data:Any) ‑> Void> = new FlxTypedSignal<data:Any>()

A callback function that is called when this LogStyle is used +Note: Unlike the deprecated callbackFunction, this is called every time, +even when logged with once = true and even in release mode.

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

@:value(false)throwException:Bool = false

Whether an exception is thrown when this LogStyle is used. +Note: Unlike other log style properties, this happens even in release mode.

Available since

5.4.0

.

callbackFunction:() ‑> Void

Deprecated: "callbackFunction is deprecated, use callback, instead"

A callback function that is called when this LogStyle is used

Methods

inlinetoHtmlString(data:Array<Any>):String

Converts the data into an html log message according to this style.

Parameters:

data

The data being logged

toLogString(data:Array<Any>):String

Converts the data into a log message according to this style.

Parameters:

data

The data being logged

\ No newline at end of file diff --git a/flixel/system/frontEnds/LogFrontEnd.html b/flixel/system/frontEnds/LogFrontEnd.html index 22d54108e1..7bc96cf690 100644 --- a/flixel/system/frontEnds/LogFrontEnd.html +++ b/flixel/system/frontEnds/LogFrontEnd.html @@ -7,4 +7,4 @@ float: none; text-shadow: 0 0 0 transparent; } -

Accessed via FlxG.log.

Variables

@:value(false)redirectTraces:Bool = false

Whether everything you trace() is being redirected into the log window.

Methods

inlineadd(data:Dynamic):Void

@:value({ fireOnce : false })@:haxe.warning("-WDeprecated")advanced(data:Any, ?style:LogStyle, fireOnce:Bool = false):Void

Add an advanced log message to the debugger by also specifying a LogStyle. Backend to FlxG.log.add(), FlxG.log.warn(), FlxG.log.error() and FlxG.log.notice().

Parameters:

data

Any Data to log.

style

The LogStyle to use, for example LogStyle.WARNING. You can also create your own by importing the LogStyle class.

fireOnce

Whether you only want to log the Data in case it hasn't been added already

inlineclear():Void

Clears the log output.

inlineerror(data:Dynamic):Void

inlinenotice(data:Dynamic):Void

inlinewarn(data:Dynamic):Void

\ No newline at end of file +

Accessed via FlxG.log.

Variables

@:value(false)redirectTraces:Bool = false

Whether everything you trace() is being redirected into the log window.

Methods

inlineadd(data:Dynamic):Void

@:value({ fireOnce : false })@:haxe.warning("-WDeprecated")advanced(data:Any, ?style:LogStyle, fireOnce:Bool = false):Void

Add an advanced log message to the debugger by also specifying a LogStyle. Backend to FlxG.log.add(), FlxG.log.warn(), FlxG.log.error() and FlxG.log.notice().

Parameters:

data

Any Data to log.

style

The LogStyle to use, for example LogStyle.WARNING. You can also create your own by importing the LogStyle class.

fireOnce

Whether you only want to log the Data in case it hasn't been added already

inlineclear():Void

Clears the log output.

inlineerror(data:Dynamic):Void

inlinenotice(data:Dynamic):Void

inlinewarn(data:Dynamic):Void

\ No newline at end of file diff --git a/nav.js b/nav.js index 7264e2bc29..e7c0871fea 100644 --- a/nav.js +++ b/nav.js @@ -1 +1 @@ -var navContent=''; \ No newline at end of file +var navContent=''; \ No newline at end of file diff --git a/ui/logs/LogFrontEnd.html b/ui/logs/LogFrontEnd.html deleted file mode 100644 index 2f45ed3a78..0000000000 --- a/ui/logs/LogFrontEnd.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -ui.logs.LogFrontEnd - Leather Engine Documentation

Constructor

new()

Methods

Inherited Variables

Defined by LogFrontEnd

@:value(false)redirectTraces:Bool = false

Whether everything you trace() is being redirected into the log window.

Inherited Methods

Defined by LogFrontEnd

inlineadd(data:Dynamic):Void

inlineclear():Void

Clears the log output.

inlineerror(data:Dynamic):Void

inlinenotice(data:Dynamic):Void

inlinewarn(data:Dynamic):Void

\ No newline at end of file diff --git a/ui/logs/index.html b/ui/logs/index.html index f462b803ec..42ca7f4814 100644 --- a/ui/logs/index.html +++ b/ui/logs/index.html @@ -7,4 +7,4 @@ float: none; text-shadow: 0 0 0 transparent; } -
\ No newline at end of file +
\ No newline at end of file