Swap parent relation between render settings and queue
Previously you'd access the render queue from the render settings screen which was arguably the wrong way around (e.g. you weren't able to access the queue when your current keyframes were incorrect even if you only wanted to render those in the queue). Now the render button opens the queue which can open a new settings popup. To save people who don't need the queue from always having to go through it, the queue will immediately open a new settings popup if does not yet have any jobs.
This commit is contained in:
@@ -27,7 +27,7 @@ public class GuiCreateScreenshot extends GuiRenderSettings implements Loadable {
|
||||
private final ReplayMod mod;
|
||||
|
||||
public GuiCreateScreenshot(ReplayMod mod) {
|
||||
super(null, null);
|
||||
super(GuiRenderSettings.createBaseScreen(), null, null);
|
||||
|
||||
this.mod = mod;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class GuiCreateScreenshot extends GuiRenderSettings implements Loadable {
|
||||
|
||||
} catch (Throwable t) {
|
||||
error(LOGGER, GuiCreateScreenshot.this, CrashReport.create(t, "Rendering video"), () -> {});
|
||||
display(); // Re-show the render settings gui and the new error popup
|
||||
getScreen().display(); // Re-show the render settings gui and the new error popup
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -75,6 +75,18 @@ public class GuiCreateScreenshot extends GuiRenderSettings implements Loadable {
|
||||
return container;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void open() {
|
||||
super.open();
|
||||
getScreen().display();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
super.close();
|
||||
getMinecraft().openScreen(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void load() {
|
||||
// pause replay when opening this gui
|
||||
|
||||
Reference in New Issue
Block a user