Jump to content

Adding an SimXMLDocument as SimGroup/Set to GuiTreeViewCtrl


xetra11

Recommended Posts

Hey guys!


The doc of GuiTreeViewCtrl tells me that there is a way to insert a SimGroup / SimSet as the tree for the whole.

Where its been written down -> http://torque-3d.readthedocs.io/en/latest/script/class/GuiTreeViewCtrl.html


There is a function "open" which is described as

Set the root of the tree view to the specified object, or to the root set.

 

So what I now did is created a SimXmlDocument and parsed in a XML File. This works fine. But when I want to open this file with this function:

void GuiTreeViewCtrl::open(SimSet obj, bool okToEdit)

 

Things go wrong?


Thats because it awaits a SimSet as first param - but the SimXmlDocument is a SimObject...so what to do now? Is there a factory function to create a SimGroup/Set out of that?



Charlie

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...