示例#1
0
        public bool AcceptChar(TextField textField, char c)
        {
            if (c == 't' || c == 'T')
            {
                textField.SetTextForced("true");
            }

            if (c == 'f' || c == 'F')
            {
                textField.SetTextForced("false");
            }

            return(false);
        }
示例#2
0
        public void SetNumber(float value)
        {
            field.SetTextForced(value.ToString());
            number = value;

            OnNumberChanged(this, value);
        }