Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jindave

Pages: [1]
1
NGUI 3 Support / Re: UIInput on canceled event
« on: June 25, 2014, 07:00:43 AM »
Thanks for clarification!

2
NGUI 3 Support / UIInput on canceled event
« on: June 25, 2014, 05:25:35 AM »
Hello Tasharen team,
I found that I often need to handle situation when mobile keyboard was canceled by user (He touched outside of keyboard). You reset the state like this:

Update function:
  1. if (!mKeyboard.wasCanceled) Submit();
  2. mKeyboard = null;
  3. isSelected = false;
  4. mCached = "";

I did small update which I guess can be handy for all:

Event declaration:
  1. public List<EventDelegate> onCanceled = new List<EventDelegate>();

Update function:
  1. if (!mKeyboard.wasCanceled) Submit();
  2. else Canceled();
  3. mKeyboard = null;
  4. isSelected = false;
  5. mCached = "";

Canceled function:
  1. public void Canceled()
  2. {
  3.     if (NGUITools.GetActive(this))
  4.     {
  5.         if (current == null)
  6.         {
  7.             current = this;
  8.             EventDelegate.Execute(onCanceled);
  9.             current = null;
  10.         }
  11.     }
  12. }

3
NGUI 3 Support / Different TTF fonts for different languages
« on: April 20, 2014, 09:27:06 AM »
Is there any made solution for solving situations where there is the need for different TTF font for different language?

4
NGUI 3 Support / UIInput OnDeselectEvent
« on: April 05, 2014, 08:22:50 AM »
Hello,
is there any way how to disable closing the input (keyboard), when I touch outside the  input onto screen ?
Is seems that in case when I touch outside the input, there is no call of method OnDeselectEvent.
Tested on 3.5.5

5
I have same problem, have any one solution ?

6
NGUI 3 Support / Re: Soft clip center moves with scroll bar
« on: May 31, 2013, 08:14:10 AM »
Hi, I have same problem, have you any solution ?

Pages: [1]