Author Topic: UIInput.inputType change at runtime  (Read 3289 times)

PoL

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
UIInput.inputType change at runtime
« on: February 12, 2014, 11:43:14 AM »
When I change the field UIInput.inputType at runtime, it does't update the label text.

To update the label I need to do something like this:

  1. inputPassword.inputType = show ? UIInput.InputType.Standard : UIInput.InputType.Password;
  2. string v = inputPassword.value;
  3. inputPassword.value = v.Length == 0 ? " " : "";
  4. inputPassword.value = v;
  5.  

Better solution for this could be making the method UIInput.UpdateLabel() public or replacing the field UIInput.inputType with a propertie.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput.inputType change at runtime
« Reply #1 on: February 13, 2014, 12:55:57 AM »
Fair enough, I will make it public.