Feat: in text UIs, show render progress in one line (#257)

The text UI gets quite messy during the render process, as it takes at least one extra line of the screen per second. This PR fixes that issue and also shows an ASCII bar to show the render progress.
This commit is contained in:
Luis Uguina
2020-06-17 18:24:59 +10:00
committed by GitHub
parent ce756db69d
commit b91bf3c0c5
5 changed files with 59 additions and 23 deletions

View File

@@ -191,12 +191,16 @@ public class GuiSwing extends JFrame implements Gui {
}
}
@Override public void status(String msg, int progress, long size) {
@Override public void status(String msg, int progress) {
if (activityWorking != null) {
this.activityWorking.setStatus(String.format("%s %d%%", msg, progress));
}
}
@Override public void status(String msg, int progress, long size) {
this.status(msg, progress);
}
@Override public void setRenderingProjectName(String name_) {
if (activityWorking != null) {
this.activityWorking.setRenderingProjectName(name_);