-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSave.pde
31 lines (30 loc) · 888 Bytes
/
Save.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
void save() {
if (saveOn) {
saveOn = false;
((Toggle)cp5.getController("saveContinuous")).setLabel("Continuously").setColorCaptionLabel(currentTheme.ControlCaptionLabel);
println("Saving stopped");
} else {
drawcp5 = true;
if (saveContinuous) {
((Toggle)cp5.getController("saveContinuous"))
.setLabel("Continuously [Saving]")
.setColorCaptionLabel(currentTheme.ControlCaptionLabel);
}
timestamp = year() + nf(month(), 2) + nf(day(), 2) + "-" + nf(hour(), 2) + nf(minute(), 2) + nf(second(), 2);
saveOn = true;
print("\nSaving started (" + timestamp +")");
if (saveOpenGL) {
print(" | OpenGL Current View");
}
if (saveGui) {
print(" | Gui");
}
if (saveSunflow) {
print(" | Render Sunflow");
}
if (saveMask) {
print(" | Save Sunflow Mask");
}
print("\n");
}
}