Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: PoL on February 12, 2014, 11:43:14 AM

Title: UIInput.inputType change at runtime
Post by: PoL 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.
Title: Re: UIInput.inputType change at runtime
Post by: ArenMook on February 13, 2014, 12:55:57 AM
Fair enough, I will make it public.