Don't render weather in full map screenshots

This commit is contained in:
Anuken
2020-12-25 21:51:25 -05:00
parent 9f8fce72d3
commit f014339dbc
3 changed files with 5 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ public class Renderer implements ApplicationListener{
public @Nullable Bloom bloom;
public FrameBuffer effectBuffer = new FrameBuffer();
public float laserOpacity = 1f;
public boolean animateShields;
public boolean animateShields, drawWeather = true;
/** minZoom = zooming out, maxZoom = zooming in */
public float minZoom = 1.5f, maxZoom = 6f;
@@ -351,6 +351,7 @@ public class Renderer implements ApplicationListener{
FrameBuffer buffer = new FrameBuffer(w, h);
drawWeather = false;
float vpW = camera.width, vpH = camera.height, px = camera.position.x, py = camera.position.y;
disableUI = true;
camera.width = w;
@@ -376,6 +377,7 @@ public class Renderer implements ApplicationListener{
PixmapIO.writePNG(file, fullPixmap);
fullPixmap.dispose();
ui.showInfoFade(Core.bundle.format("screenshot", file.toString()));
drawWeather = true;
buffer.dispose();
}