Skip to content

Commit 939ab07

Browse files
add initial variables to FlxTypeText and lowercase the parameters (#467)
1 parent dcd3895 commit 939ab07

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

flixel/addons/text/FlxTypeText.hx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,17 @@ class FlxTypeText extends FlxText
174174
* Create a FlxTypeText object, which is very similar to FlxText except that the text is initially hidden and can be
175175
* animated one character at a time by calling start().
176176
*
177-
* @param X The X position for this object.
178-
* @param Y The Y position for this object.
179-
* @param Width The width of this object. Text wraps automatically.
180-
* @param Text The text that will ultimately be displayed.
181-
* @param Size The size of the text.
182-
* @param EmbeddedFont Whether this text field uses embedded fonts or not.
183-
*/
184-
public function new(X:Float, Y:Float, Width:Int, Text:String, Size:Int = 8, EmbeddedFont:Bool = true)
177+
* @param x The X position for this object.
178+
* @param y The Y position for this object.
179+
* @param width The width of this object. Text wraps automatically.
180+
* @param yext The text that will ultimately be displayed.
181+
* @param size The size of the text.
182+
* @param embeddedFont Whether this text field uses embedded fonts or not.
183+
*/
184+
public function new(x:Float = 0, y:Float = 0, width:Int = 0, text:String = "", size:Int = 8, embeddedFont:Bool = true)
185185
{
186-
super(X, Y, Width, "", Size, EmbeddedFont);
187-
_finalText = Text;
186+
super(x, y, width, "", size, embeddedFont);
187+
_finalText = text;
188188
}
189189

190190
/**

0 commit comments

Comments
 (0)