File > Load File... Menu question
by Jared Hoberock · in Torque Game Engine · 02/20/2002 (11:43 pm) · 3 replies
Pretty much all "Load File..." type windows within the demo don't allow you to move up into parent directories (list doesn't show ../) or down into child directories. Moreover, the list simply displays the full path of every single file in the directory tree starting from some fixed point unique to the "Load File..." window. How difficult would it be to implement the standard Windows Explorer style window which would allow you to traverse directories? Could this be done entirely within scripts, or would source code have to be changed? If anyone already has implemented this and would like to share some ideas I'd be grateful.
Thanks,
J
Thanks,
J
About the author
#2
06/22/2006 (12:31 pm)
It is not very clear from Tim's response how to get the GUI Tree to move to the parent directory (ex: navigate to desktop). How does one control the root directory being shown in the tree?
#3
In main.cs you set the "mod" folders. Torque then scans these for files and caches the filetree. That load file dialog isn't reading in real time from your HD, it's displaying the cached filetree.
Also, Toque cannot see files outside it's own root folder without some modifications to the source. I'm not sure if there is a resource out there for getting files outside the root folder, but the Show Tool Pro can do it.
Keep in mind that the Show Tool does not implement a generic "open file" dialog with full access to the whole disc. It simply allows you to setup as many "mod" folders (project directories) as you want from anywhere in your computer, and switch the current directory where models are loaded from.
06/22/2006 (12:58 pm)
It's not quite trivial.In main.cs you set the "mod" folders. Torque then scans these for files and caches the filetree. That load file dialog isn't reading in real time from your HD, it's displaying the cached filetree.
Also, Toque cannot see files outside it's own root folder without some modifications to the source. I'm not sure if there is a resource out there for getting files outside the root folder, but the Show Tool Pro can do it.
Keep in mind that the Show Tool does not implement a generic "open file" dialog with full access to the whole disc. It simply allows you to setup as many "mod" folders (project directories) as you want from anywhere in your computer, and switch the current directory where models are loaded from.
Torque Owner Tim Gift