TGB/KnownIssues/Fixes/loadsavebrushes

From TDN


Back

Go to imageSelection.ed.cs, to line 470, and edit two lines there to look like this:

	// Load/Save Brushes.
	tileScreenMenu.scriptCommand["Brush", 1] = "TileMapEditor::loadFile(\"*.bru\", loadBrushes, $currentBrushDirectory);";		
	tileScreenMenu.scriptCommand["Brush", 2] = "TileMapEditor::saveFile(\"*.bru\", saveBrushes, $currentBrushDirectory);";	

Just be sure you get the lines that start with

tileScreenMenu.scriptCommand["Brush", 1]

and

tileScreenMenu.scriptCommand["Brush", 2]


Now go to editorScreen.ed.cs, to about line 230. At the end of the else if statement, add this block

else if (%ext $= "*.bru")
 {
    %filter = %dialog.AddFilter("*.bru","TGB Tile Brush Files");
    %filterList.setSelected ( %filter );
 }


That fixes everything related to the load/save brush dialogs, as far as I can tell.

Back