Trimmed tileset takes care of setting up its name, but the image path must
be set by the caller. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1525 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ComponentBundlerTask.java,v 1.10 2002/06/21 18:09:37 mdb Exp $
|
// $Id: ComponentBundlerTask.java,v 1.11 2002/06/21 18:44:28 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cast.bundle.tools;
|
package com.threerings.cast.bundle.tools;
|
||||||
|
|
||||||
@@ -184,7 +184,6 @@ public class ComponentBundlerTask extends Task
|
|||||||
TrimmedTileSet tset =
|
TrimmedTileSet tset =
|
||||||
TrimmedTileSet.trimTileSet(aset, jout);
|
TrimmedTileSet.trimTileSet(aset, jout);
|
||||||
tset.setImagePath(ipath);
|
tset.setImagePath(ipath);
|
||||||
tset.setName(aset.getName());
|
|
||||||
|
|
||||||
// also write our trimmed tileset to the jar file
|
// also write our trimmed tileset to the jar file
|
||||||
String tpath = composePath(
|
String tpath = composePath(
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: TrimmedTileSet.java,v 1.2 2002/06/21 18:09:34 mdb Exp $
|
// $Id: TrimmedTileSet.java,v 1.3 2002/06/21 18:44:27 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.tile;
|
package com.threerings.media.tile;
|
||||||
|
|
||||||
@@ -38,14 +38,18 @@ public class TrimmedTileSet extends TileSet
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a trimmed tileset from the supplied source tileset. See
|
* Creates a trimmed tileset from the supplied source tileset. The
|
||||||
* {@link TileSetTrimmer#trimTileSet} for further information.
|
* image path must be set by hand to the appropriate path based on
|
||||||
|
* where the image data that is written to the <code>destImage</code>
|
||||||
|
* parameter is actually stored on the file system. See {@link
|
||||||
|
* TileSetTrimmer#trimTileSet} for further information.
|
||||||
*/
|
*/
|
||||||
public static TrimmedTileSet trimTileSet (
|
public static TrimmedTileSet trimTileSet (
|
||||||
TileSet source, OutputStream destImage)
|
TileSet source, OutputStream destImage)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
final TrimmedTileSet tset = new TrimmedTileSet();
|
final TrimmedTileSet tset = new TrimmedTileSet();
|
||||||
|
tset.setName(source.getName());
|
||||||
int tcount = source.getTileCount();
|
int tcount = source.getTileCount();
|
||||||
|
|
||||||
// grab the dimensions of the original tiles
|
// grab the dimensions of the original tiles
|
||||||
|
|||||||
Reference in New Issue
Block a user