Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: csykora on October 22, 2013, 08:10:18 AM

Title: UIInput.current not being set for OnSubmit
Post by: csykora on October 22, 2013, 08:10:18 AM
I don't know if this has been posted yet but with updating to use EventDelegate I'm noticing an issue with UIInput.current. My understanding is that this should get set when the OnSubmit gets triggered.

Looking through UIInput it looks like current never gets set. Here is the current code for Submit()

  1.        
  2. protected void Submit ()
  3. {
  4.         if (NGUITools.IsActive(this))
  5.         {
  6.                 mValue = value;
  7.                 EventDelegate.Execute(onSubmit);
  8.                 SaveToPlayerPrefs(mValue);
  9.         }
  10. }
  11.  

Shouldn't this set current = this; then current = null after executing? Or am I not understanding this correctly
Title: Re: UIInput.current not being set for OnSubmit
Post by: ArenMook on October 22, 2013, 07:51:28 PM
Does it currently get set outside of the Submit function? It would likely make sense. I'll have a look at it when I get back home.