public InputMenuItem(Game2D game, string text, int maxInputTextLength, InputType inputType, bool normalText = false) : base(game)
        {
            Text        = text;
            _normalText = normalText;

            _inputController = new StringInputController(inputType, maxInputTextLength);
        }
Exemple #2
0
        public TextBox(Game2D game, int width, int height) : base(game)
        {
            _frameBorder = new Border(game)
            {
                Width  = width,
                Height = height
            };
            _textInputFont = Resources.NormalFont;

            _inputController = new StringInputController(InputType.AlphaNumeric, 20);
        }