Author Topic: UIPanel cross UIGrid conflict  (Read 2097 times)

mmb900126

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UIPanel cross UIGrid conflict
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIPanel cross UIGrid conflict
« Reply #1 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)