Game Development Community

File browser

by Scott Jaworski · in Torque Game Builder · 04/17/2006 (1:25 pm) · 3 replies

I'm trying to write a GUI that will let me browser through a directory and choose a file that I want to load (choosing a map for a TBS game). I did a google search for file browser and came up with this: http://www.garagegames.com/mg/forums/result.thread.php?qt=2673, but it says that I have to purchase TGE to view it! The majority of my problems come from just not knowing the command for something (or the name of a function or class)... is there anything written already that would explain how to do a file browser? File I/O in general is something that I can't find much on either... any pointers in the right direction would be greatly apprectiated...

#1
04/17/2006 (2:10 pm)
Take a look at GuiDirectoryFileListCtrl. This will list all the files in a directory. You can provide file masks and such for it also. This would be the main start to what you are looking for...
#2
04/21/2006 (8:46 am)
Hmm.... not trying to be a total noob... but there's nothing on the site or in the documentation that I can read about how to use that. I can bring up the GUI editor and play with it, but I've got no idea what I'm doing.... is that the point of open beta? >_>
#3
04/21/2006 (3:01 pm)
The GUI editor has been around since early TGE so that will probably be the last editor to change. There are tutorials and docs around for it, and some books go over using it too. The newest book "The Game Programmers Guide to Torque" has lots of nice GUI related info and sample scripts on the CD. Even though it doesn't cover TGB I feel it was worth buying even just for that.