Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mmb900126 on March 02, 2014, 10:58:03 PM

Title: UIPanel cross UIGrid conflict
Post by: mmb900126 on March 02, 2014, 10:58:03 PM
Hello,

I am making a Panel which contains banners that user can drag to browse vertically.
I am using UIScroll View and UIDrag Scoll View for the overall panel.
and I am trying to let the user delete a single banner when slide on a individual banner.
I managed to slide and show the delete button for a single banner using UIGrid and UICenter On Click

However, it stops the whole panel to move vertically.
I was wondering if there is any workaround to achieve the behavior.

Would you please give me some advises on this regard.

thank you,


~Marvin
Title: Re: UIPanel cross UIGrid conflict
Post by: ArenMook on March 03, 2014, 11:44:30 PM
Stops the panel moving vertically? I don't understand what you mean. NGUI has a few examples with vertical scroll views. Quest log and Drag & Drop come to mind. The setup must be like so:

Scroll view (panel, scroll view)
- Grid (UICenterOnChild)
-- Item 1 (UICenterOnClick)
-- Item 2 (UICenterOnClick)
-- Item 3 (UICenterOnClick)