Author Topic: UIInput suggestion  (Read 2007 times)

Gillissie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
UIInput suggestion
« on: June 21, 2012, 04:08:49 PM »
Please add a property to UIInput that allows us to specify which characters are allowed for input, then have UILabel ignore any input that isn't in that property.

For example:
myInput.allowedCharacters = "0123456789\n\r";

PhilipC

  • Guest
Re: UIInput suggestion
« Reply #1 on: June 21, 2012, 04:10:36 PM »
You can always write your own script which has a OnInputChanged function and validate the text input yourself.

Gillissie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 48
    • View Profile
Re: UIInput suggestion
« Reply #2 on: June 22, 2012, 09:54:33 AM »
The problem I'm having is that the UIInput script considers "enter" a special key that loses focus on the box. I don't want that, so instead of modifying the source code and having to keep doing that for each update, I'm suggesting that the source code has some kind of limiting feature built in for the future.