spaceconquest.TextLine.TextLine C# (CSharp) Method

TextLine() public method

public TextLine ( Rectangle r, String t ) : System
r Microsoft.Xna.Framework.Rectangle
t String
return System
        public TextLine(Rectangle r, String t)
        {
            area = r;
            text = t;
            texture = new Texture2D(MenuManager.batch.GraphicsDevice, 1, 1, true, SurfaceFormat.Color);
            texture.SetData(new[] { Color.White });
            stringvector = new Vector2(area.X, area.Center.Y);

            currentcolor = normalcolor = Color.Teal;
            clickedcolor = Color.Blue;
            selectedcolor = Color.Red;
        }