spaceconquest.TextInput.TextInput C# (CSharp) Method

TextInput() public method

public TextInput ( Rectangle r, PressedEnter e ) : System
r Microsoft.Xna.Framework.Rectangle
e PressedEnter
return System
        public TextInput(Rectangle r, PressedEnter e)
        {
            //chat = g;
            enter = e;
            area = r;
            texture = new Texture2D(MenuManager.batch.GraphicsDevice, 1, 1, true, SurfaceFormat.Color);
            texture.SetData(new[] { Color.White });
            stringvector = new Vector2(area.Center.X, area.Center.Y) - (MenuManager.font.MeasureString(input) / 2);
        }