Game Development Community

GUI editor: save / save as

by James Ford · in Torque Game Builder · 08/09/2007 (10:06 am) · 2 replies

Currently the gui editor has only one way to save changes "save". Which works like "save as" does in most applications, that is, you have to select the filename and click "yes" if you want to overwrite. I would really like the current menu item changed to "save as" and a "save" menu item added which saves and overwrites automatically to the previously saved filename. Is there any reason the GUI editor wouldn't know what that filename is? It could be saved when you load a gui.

This would just be more convienient for workflow when making a lot of guis and making many small changes.

#1
08/09/2007 (10:42 am)
Total agreement.
And not only that, if you started actually saving the filename in the gui object, you couldmake it smart enough to delete the old version when the file is reloaded
#2
08/10/2007 (8:51 am)
Yep,
Also, I noticed that you have to type in the extension when you save your gui's or they will have none. GUI's should always be .gui so why can't this be added automatically? When you click on a file it puts its filename in the texteditbox, but it could trim off the filename, then when you go to save, it automatically addes ".gui" on to the end of whatever text is in the box. Or if someone has manually typed in a full filename with an extension it can detect that by searching the string for the substring "." and either give a MessageBoxOK("Don't include an extension") or it can use whatever they typed in without adding the ".gui" on in that case.

I am working on some save / loading guis for my game and this is the method I am using.