1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

add border to full base screenshot

This commit is contained in:
EmeraldBlock 2021-06-04 13:47:53 -05:00
parent 2ad07f9ace
commit a806708333

View File

@ -171,7 +171,9 @@ export class HUDScreenshotExporter extends BaseHUDPart {
maxTile.x = Math.ceil(maxTile.x / globalConfig.mapChunkSize) * globalConfig.mapChunkSize;
maxTile.y = Math.ceil(maxTile.y / globalConfig.mapChunkSize) * globalConfig.mapChunkSize;
tileBounds = Rectangle.fromTwoPoints(minTile, maxTile);
tileBounds = Rectangle.fromTwoPoints(minTile, maxTile).expandedInAllDirections(
globalConfig.mapChunkSize
);
}
// if the desired pixels per tile is too small, we do not create a border