fliXNA_xbox.FlxText.FlxText C# (CSharp) Method

FlxText() public method

public FlxText ( float X, float Y, float Width, String Text = null, SpriteFont Font = null ) : System
X float
Y float
Width float
Text String
Font Microsoft.Xna.Framework.Graphics.SpriteFont
return System
        public FlxText(float X, float Y, float Width, String Text = null, SpriteFont Font = null)
            : base(X, Y)
        {
            makeGraphic((uint)Width, 1, FlxColor.BLACK);
            if (Text == null)
                _textField = "";
            else
                _textField = Text;

            if(Font == null)
                _font = FlxG.defaultFont;
            else
                _font = Font;

            _regen = true;
            AllowCollisions = None;
            calcFrame();
            _scale = 0;
            //_numLines = 0;
        }