class flixel.text.FlxBitmapTextField extends FlxSprite

Available on all platforms

Extends FlxSprite to support rendering text. * Can tint, fade, rotate and scale just like a sprite. * Doesn't really animate though, as far as I know. * Also does nice pixel-perfect centering on pixel fonts * as long as they are only one liners.

Instance Fields

var alignment:Int

Specifies how the text field should align text. * LEFT, RIGHT, CENTER.

var background:Bool

Specifies whether the text field should have a filled background.

var backgroundColor:Int

Specifies the color of the text field background.

var font:PxBitmapFont

Sets which font to use for rendering.

var fontScale:Float

Sets the "font size" of the text

var lineSpacing:Int

Sets the distance between lines

var multiLine:Bool

Specifies whether the text field will break into multiple lines or not on overflow.

var outline:Bool

Specifies whether the text should have an outline.

var outlineColor:Int

Specifies whether color of the text outline.

var padding:Int

Sets the padding of the text field. This is the distance between the text and the border of the background (if any).

var shadow:Bool

Specifies whether the text should have a shadow.

var shadowColor:Int

Specifies the color of the text field shadow.

var text:String

Text to display.

var textColor:Int

Sets the color of the text.

function new(?PxFont:PxBitmapFont = null):Void

Constructs a new text field component. *

PxFont

Optional parameter for component's font prop

function destroy():Void

Clears all resources used.

function draw():Void

function update():Void