Author Topic: UIGrid: cell selection event  (Read 2927 times)

Mikhail.Sha

  • Guest
UIGrid: cell selection event
« 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!

dlewis

  • Guest
Re: UIGrid: cell selection event
« Reply #1 on: April 05, 2013, 05:03:01 AM »
UIGrid is a method of storing objects in a grid (wow!), it doesn't actually handle any (touch) events.

Mikhail.Sha

  • Guest
Re: UIGrid: cell selection event
« Reply #2 on: April 05, 2013, 05:32:48 AM »
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.

dlewis

  • Guest
Re: UIGrid: cell selection event
« Reply #3 on: April 05, 2013, 05:48:46 AM »
I would put a custom script on the object (button) that implements OnPress/OnClick.