Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: lemmy101 on Thu 27/03/2008 20:40:13

Title: AddTreeLeaf for .NET Plugin (FIXED, I==BLIND)
Post by: lemmy101 on Thu 27/03/2008 20:40:13
Hi CJ! :)

I'm trying to port over the AGX editor into AGS now, but am having trouble with the tree view... Basically I have two functions, AddTreeLeaf and AddTreeRoot. Unfortunately the leaf one doesn't seem to handle children at this time, so I can only make trees of 1 depth. Is there anything I'm missing here? If not would it be possible to add parent support to the AddTreeLeaf so I can do deeper trees?

Thanks! :)

Lemmy
Title: Re: AddTreeLeaf for .NET Plugin
Post by: smiley on Thu 27/03/2008 21:23:42
You can use StartFromNode(this, PARENTNODEID) to set the parent for new nodes.
Title: Re: AddTreeLeaf for .NET Plugin
Post by: lemmy101 on Thu 27/03/2008 21:30:27
*blushes*

Ahh yes, thanks smiley! ;)