Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vexe on August 27, 2013, 03:40:32 AM

Title: How to achieve a folder structure ScrollView?
Post by: vexe on August 27, 2013, 03:40:32 AM
Hi, I wonder if I could achieve something like in the first attached picture, where in your scroll view, you have folders/holders, and if you click on them, they have contents inside. You could create a folder, name it and even drag items in it to organize them.

How can I achieve that? - Thanks.

Title: Re: How to achieve a folder structure ScrollView?
Post by: ArenMook on August 27, 2013, 12:24:01 PM
Doable? Yes. Easy? Nope. Unfortunately I can't offer much advice here, but I'd suggest looking at the quest log example. Drag & drop of objects between panels -- check the drag & drop example.
Title: Re: How to achieve a folder structure ScrollView?
Post by: vexe on August 27, 2013, 12:52:45 PM
Thanks Aren I actually got it all thought, I think I can use code from my current inventory so I don't have to code everything from scratch. One new thing I should add, is a stack data structure to hold the current grid being viewed, this way I can handle the "Back" button, to take me back within the structure. It will be fun. I will be posting my inventory 03 demo when I'm done to show it if you don't mind :)