public TextBox() { Text = string.Empty; Mode = TextBoxInputMode.Anything; Position = Vector2.Zero; BorderScale = 1; Scale = 1; MaxLength = 8; BorderColor = Color.Gray; BackgroundColor = Color.FromNonPremultiplied(new Vector4(0, 0, 0, 0.25f)); Color = Color.White; Texture = GameContent.Texture("pixel"); Font = TextRenderer.GetFont(); Shadow = true; Enabled = true; State = ButtonState.Idle; cursor = false; lastMouseState = Mouse.GetState(); lastKeyboardState = Keyboard.GetState(); }
public TextBoxInputBehavior() { InputMode = TextBoxInputMode.None; JustPositivDecimalInput = false; }