Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Mikhail.Sha on April 05, 2013, 04:20:17 AM
-
Hi, is there some event when cell of UIGrid is selected? Or i should add some button to it? but if UIButton takes all cell's space, then cell itself don't receive touch events, as them intercepted by button...
Thanks, any help is appreciated!
-
UIGrid is a method of storing objects in a grid (wow!), it doesn't actually handle any (touch) events.
-
Ok, i read the source code of UIGrid and know that it actually don't make any touches processing. I asked in common - how to detect which item selected and what approach i should use - add button, subclass the UIDragPanelContents, or something else?
P.S. I found NGUI only few days ago and don't understand some of it's approaches, it's much differ from native iOS/android flow with delegate/listener asynchronous patterns.
-
I would put a custom script on the object (button) that implements OnPress/OnClick.