Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tanner027

Pages: [1]
1
NGUI 3 Support / Re: "Endless" scrolling + Drag and Drop
« on: May 23, 2014, 01:58:51 PM »
On the subject of the endless scroll: if someone is looking to add content to a wrapper dynamically and get the "wrap" portions to work correctly, the following code snippet worked for me
  1.                         // after all content is added to the Wrapper
  2.                         wrapper.SortBasedOnScrollMovement();
  3.                         wrapper.WrapContent();
  4.  

2
NGUI 3 Support / Re: "Endless" scrolling + Drag and Drop
« on: May 14, 2014, 11:58:24 AM »
So I've got some items populated on the Grid/WrapContent via code and that all looks fine. The issue comes from when the drag/drop happens. It seems like the WrapContent is attempting to do its SortBasedOnScrollMovement bit at the same time that the Grid is running Reposition() which is messing up the arrangement.

The Grid provides a lot of the functionality that I need (like adding children and constrain to panel) so I think I'm going to attempt to integrate the "endless" logic in UIGrid (or something derived from it). If you had advice on the best way to get these two to play nicely together I would love to hear it.

3
NGUI 3 Support / "Endless" scrolling + Drag and Drop
« on: May 13, 2014, 11:40:54 AM »
Hello NGUI-ans,
I'm trying to combine the endless scroll (UIWrap) with the drag and drop capabilities and I feel that I'm missing something silly. I'm starting with the endless scrolling NGUI example and then adding the drop/drop resources where they belong. When all is said and done I have endless scrolling with drag and drop capabilities but the scroll view layout gets all screwy (there are blank positions in the view, spacing seems off).

I haven't really dug my claws into what's going on in these examples code-wise but I'm really reaching out to see anyone has done this before and has some straightforwards steps. If not maybe a hint in the right direction of a function to start at. Any help is appreciated. I will post updates if I stumble on a solution or if I can bring anymore details to the front.

Pages: [1]