mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Reduce appearance of character
This commit is contained in:
@@ -215,9 +215,11 @@ public class CommandCenterScreen extends FScreen implements IVCommandCenter {
|
|||||||
public void draw(HexagonTile tile, int x, int y, int w, int h) {
|
public void draw(HexagonTile tile, int x, int y, int w, int h) {
|
||||||
g.drawImage(FSkinImage.HEXAGON_TILE, x, y, w, 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 pedestalHeight = pedestalWidth * walker.getHeight() / walker.getWidth();
|
float pedestalWidth = w * 0.8f;
|
||||||
g.drawImage(walker, x + (w - pedestalWidth) / 2, y + h / 2 - pedestalHeight * 0.8f, pedestalWidth, pedestalHeight);
|
float pedestalHeight = pedestalWidth * walker.getHeight() / walker.getWidth();
|
||||||
|
g.drawImage(walker, x + (w - pedestalWidth) / 2, y + h / 2 - pedestalHeight * 0.8f, pedestalWidth, pedestalHeight);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user