Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update FlxText.hx
Browse files Browse the repository at this point in the history
Metlmeta committed Jul 3, 2021

Verified

This commit was signed with the committer’s verified signature.
Ank4n Ankan
1 parent 92d3a0d commit dd72a4a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flixel/text/FlxText.hx
Original file line number Diff line number Diff line change
@@ -1040,6 +1040,7 @@ class FlxText extends FlxSprite
to.italic = from.italic;
to.size = from.size;
to.color = from.color;
to.leading = from.leading;
if (withAlign)
to.align = from.align;
}
@@ -1073,6 +1074,11 @@ class FlxText extends FlxSprite
@:allow(flixel.text.FlxText.applyFormats)
class FlxTextFormat
{
/**
* The leading (vertical space between lines) of the text.
*/
public var leading(default, set):Int;

/**
* The border color if the text has a shadow or a border
*/
@@ -1091,6 +1097,12 @@ class FlxTextFormat
format = new TextFormat(null, null, FontColor, Bold, Italic);
borderColor = BorderColor == null ? FlxColor.TRANSPARENT : BorderColor;
}

function set_leading(value:Int):Int
{
format.leading = value;
return value;
}
}

private class FlxTextFormatRange

0 comments on commit dd72a4a

Please sign in to comment.