[Super-tux-commit] supertux/contrib/tilemanager Application.cs,1.3,1.4 TODO,1.1,1.2
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-11-22 17:52:14
|
Update of /cvsroot/super-tux/supertux/contrib/tilemanager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8642/contrib/tilemanager Modified Files: Application.cs TODO Log Message: enemies fall down again, small improvements to tile manager Index: Application.cs =================================================================== RCS file: /cvsroot/super-tux/supertux/contrib/tilemanager/Application.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Application.cs 22 Nov 2004 01:58:47 -0000 1.3 +++ Application.cs 22 Nov 2004 17:51:50 -0000 1.4 @@ -61,6 +61,10 @@ Application app = new Application(); + /* that's no proper commandlineparsing, but who'll notice... */ + if(args.Length == 1) + app.LoadTileSet(args[0]); + kit.Run(); return 0; } @@ -101,6 +105,10 @@ string file = selection.Filename; selection.Destroy(); + LoadTileSet(file); + } + + private void LoadTileSet(string file) { try { tileset = new TileSet(); tileset.Parse(file); @@ -277,6 +285,9 @@ } private void OnDrawingAreaButtonPress(object o, ButtonPressEventArgs e) { + if(SelectionArray == null) + return; + selecting = true; for(int i = 0; i < SelectionArray.Length; ++i) Index: TODO =================================================================== RCS file: /cvsroot/super-tux/supertux/contrib/tilemanager/TODO,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TODO 22 Nov 2004 01:49:43 -0000 1.1 +++ TODO 22 Nov 2004 17:51:50 -0000 1.2 @@ -2,3 +2,5 @@ -show tile images next to tile numbers -allow removing of tiles -undo ? +-combobox only works after enter has been pressed + |