Author Topic: How to achieve a folder structure ScrollView?  (Read 1792 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
How to achieve a folder structure ScrollView?
« 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.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to achieve a folder structure ScrollView?
« Reply #1 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.

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: How to achieve a folder structure ScrollView?
« Reply #2 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 :)