v0.4.8. Removed stupid feature (almost a bug) that made it painful to

handle adding spritesheets. Fixed colorfilters not showing on the
worldmap and replacements simulator. Added "display type" (a.k.a rarity)
item field in the Items comparator.
This commit is contained in:
Zukero
2016-08-12 15:35:17 +02:00
parent 1a70f87897
commit ce908f0033
12 changed files with 225 additions and 248 deletions

View File

@@ -51,5 +51,5 @@ public interface MapRenderer
* @param g the graphics context to paint to
* @param layer the layer to paint
*/
public void paintTileLayer(Graphics2D g, TileLayer layer, BufferedImageOp filter);
public void paintTileLayer(Graphics2D g, TileLayer layer);
}

View File

@@ -53,7 +53,7 @@ public class OrthogonalRenderer implements MapRenderer
map.getHeight() * map.getTileHeight());
}
public void paintTileLayer(Graphics2D g, TileLayer layer, BufferedImageOp filter ) {
public void paintTileLayer(Graphics2D g, TileLayer layer) {
final Rectangle clip = g.getClipBounds();
final int tileWidth = map.getTileWidth();
final int tileHeight = map.getTileHeight();
@@ -84,9 +84,9 @@ public class OrthogonalRenderer implements MapRenderer
g.drawImage(
image,
filter,
x * tileWidth,
(y + 1) * tileHeight - image.getHeight(null));
(y + 1) * tileHeight - image.getHeight(null),
null);
}
}