Reduce appearance of character

This commit is contained in:
drdev
2014-12-16 06:05:12 +00:00
parent f6b7ea95f2
commit fe82ac76ac

View File

@@ -215,11 +215,13 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter {
public void draw(HexagonTile tile, int x, int y, int w, int h) {
g.drawImage(FSkinImage.HEXAGON_TILE, x, y, w, h);
float pedestalWidth = w * 0.2f;//0.8f;
if (x < getWidth() / 2 && x + w > getWidth() / 2 && y < getHeight() / 2 && y + h > getHeight() / 2) {
float pedestalWidth = w * 0.8f;
float pedestalHeight = pedestalWidth * walker.getHeight() / walker.getWidth();
g.drawImage(walker, x + (w - pedestalWidth) / 2, y + h / 2 - pedestalHeight * 0.8f, pedestalWidth, pedestalHeight);
}
}
}
private class RegionDisplay extends FContainer {
private final TextRenderer textRenderer = new TextRenderer();