Author Topic: How to make a drag/drop Tree from a drag/drop scroll list ?  (Read 2422 times)

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
How to make a drag/drop Tree from a drag/drop scroll list ?
« on: March 20, 2014, 08:58:44 AM »
Hi,

I would like to make a Tree that has drag/drop tree nodes.  What would you suggest to use as a starting base.  I was thinking of using the drag/drop scrollable list in the example.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: How to make a drag/drop Tree from a drag/drop scroll list ?
« Reply #1 on: March 22, 2014, 11:18:21 PM »
Helllo,

This is quite a basic GUI functionality in most GUI packages but missing here.  Any ideas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to make a drag/drop Tree from a drag/drop scroll list ?
« Reply #2 on: March 23, 2014, 02:54:06 AM »
Tree as in tree view, or something else? NGUI doesn't have a tree view control example, and I would certainly not call it "basic GUI". Unity's GUI doesn't have an exposed tree view control either. You can implement your own version by instantiating elements and offsetting them as needed -- but the logic for filling the tree view is highly game-specific.

wallabie

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 200
    • View Profile
Re: How to make a drag/drop Tree from a drag/drop scroll list ?
« Reply #3 on: March 23, 2014, 04:03:40 AM »
Yes, I mean a Tree View Control.

Basic as in most GUI packages do have a TreeView Control.  Unity is an exception.  Flash, Flex, Xaml, Etc.  and everywhere else, a GUI system usually has a treeView Control that one does not need to create from scratch.  Just feed in an Xml data and we have data presented in a tree view.