Author Topic: UIDraggablePanel in 2 directions?  (Read 1384 times)

Arcio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
UIDraggablePanel in 2 directions?
« on: July 17, 2014, 01:14:10 PM »
I'm working on a simple mini game that has an effect similar to a game called Trizzle.

http://youtu.be/ngB7Crq0rZ8?t=4m40s

Essentially I want to be able to drag the whole row or the whole column depending on which way I drag.

If you look at that link, there is a grid of 5x5 and when you grab an item, you're able to move the entire row or column that the item is in either horizontally or vertically. Now I have the whole draggablepanel thing figured out for the infinite loop effect but as for the rest, I've been trying to fill two draggablepanels OnPress with the objects that are in the correct row and column. This isn't working so well and the performance seems pretty slow.

Does anyone have a better idea on how to accomplish this? Am I way off base or over thinking things? Any thoughts would be greatly appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIDraggablePanel in 2 directions?
« Reply #1 on: July 18, 2014, 04:53:36 AM »
Draggable panels? There haven't been any draggable panels since NGUI 2.

You won't want to use anything in NGUI for something like this. You will want to have one scroll view, and write logic for dragging items yourself, not dragging the scroll view.

Arcio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: UIDraggablePanel in 2 directions?
« Reply #2 on: July 18, 2014, 09:26:29 AM »
You're correct, sorry, I miss spoke. I meant UIWrapContent.

It's too bad this can't be done with NGUI. Obviously I'll still use NGUI to make the elements but manipulate them on my own. Thanks.