Game Development Community

Reassigning Tile/Particle Editor save folders

by Joe Spataro · in Torque Game Builder · 06/27/2005 (11:10 am) · 2 replies

How do I change the default folders the tile and particle editors load and save files from? I think by default the look in the T2D/client/.. folders but I have made a new game folder and I want the editors to load and save from those instead.

joe.s

#1
06/27/2005 (11:15 am)
Here is a block of code from the tileeditor/client/editorScreen.cs
tileScreenMenu.scriptCommand["File", 0] = "launchNewTileDialog();";
	tileScreenMenu.scriptCommand["File", 1] = "getLoadFilename(\"tileeditor/client/maps/*.*\", loadMap);";
	tileScreenMenu.scriptCommand["File", 2] = "getLoadFilename(\"tileeditor/client/layers/*.*\", loadLayer);";
	tileScreenMenu.scriptCommand["File", 3] = "getLoadFilename(\"tileeditor/client/layers/*.*\", appendLoadLayer);";
	tileScreenMenu.scriptCommand["File", 4] = "getSaveFilename(\"tileeditor/client/maps/*.*\", saveMap, $currentMapDirectory);";
	tileScreenMenu.scriptCommand["File", 5] = "getSaveFilename(\"tileeditor/client/layers/*.*\", saveLayer, $currentLayerDirectory);";
	tileScreenMenu.scriptCommand["File", 6] = "toggleTileEditor();";


and here is a block of code from particleeditor/client/editor.cs

// Set Current Effect File.
	$currentEffectFile = "T2D/client/effects/";
	// Set Current Emitter File.
	$currentEmitterFile = "T2D/client/emitters/";

Those might do it :)
#2
06/27/2005 (11:42 am)
Thank you. That was very helpful.