Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: simongc on June 05, 2012, 10:35:43 AM
-
Hey,
So one of our more common bug reports for our last game using another GUI system was the ability to cause unwanted behaviour by pressing and releasing two buttons simultaneously - thus having both functions fire at the same time. Before we start coming up with our own system to handle this, we were wondering if NGUI had any built-in method for handling exclusive button presses, or if you had any preferred method or solution for handling this using NGUI.
Thanks!
-
How is clicking on two buttons at once unwanted?
Try the free version of NGUI. No sense in buying something if you can try it first.
-
We've tried the free version of NGUI and it's efficient, clean, easy to use and exactly what we're looking for.
90% of the time two buttons at once isn't a problem. It's mostly an issue with changing panels or displaying popups. For example: If you push a button that would display a popup at the same time as you push a panel change button, the popup will then display over the next panel, instead of the current panel.
There's definitely ways to structure button and panel change logic to avoid the issue, but we were just wondering if there was an easy way using NGUI to make it so that only one of a certain set of buttons could activate at a time.
-
Seriously? If you're working on a touch device unhandled multiple touches can do all sorts of bad things(tm).
Imagine a confirmation screen where a user presses yes and no at the same time, or even clicking with multiple fingers on the same button. (I learned that the hard way in subway surfers).
I was actually about to ask about a feature to UICamera to enforce "single touch" like the iphone can natively, if that's doable, because otherwise I have to handle it myself in every single button, which is super uncool. :)
How is clicking on two buttons at once unwanted?
-
There's an idea.
Done. :D
-
Thanks! That'll do the trick.
-
Just wondering if this feature is developed on ngui or not?
If it is how can I use it?
-
UICamera.allowMultiTouch
-
thanks