diff --git a/index.html b/index.html
index 7535a5d7..4e8dcf58 100644
--- a/index.html
+++ b/index.html
@@ -16230,10 +16230,25 @@ behaviorRules = {
}
function resetPrompt() {
if (settings.resetwarning === 0 || currentPixels.length===0) { autoResizeCanvas(); focusGame(); return }
- promptConfirm("Are you sure you want to clear the whole scene?",(r) => {
- if (r) autoResizeCanvas();
- focusGame();
- },"Clear Canvas")
+ let pause = false;
+ if (promptState) { pause = promptState.wasPaused }
+ else if (paused) { pause = true }
+ promptState = {
+ text: "Are you sure you want to clear the whole scene?",
+ title: "Clear Canvas",
+ handler: (r) => {
+ if (r) autoResizeCanvas();
+ focusGame();
+ },
+ html: standalone ? null : `
`,
+ type: "confirm",
+ wasPaused: pause
+ }
+ showPromptScreen();
+ // promptConfirm("Are you sure you want to clear the whole scene?",(r) => {
+ // if (r) autoResizeCanvas();
+ // focusGame();
+ // },"Clear Canvas")
}
function tpsPrompt() {
promptInput("Enter the new simulation Ticks Per Second (TPS) between 1 and 1000. This is how many updates per second the simulation will run.\n\nThe default is 30.\n\nThe current TPS is " + tps + ".",
@@ -17602,6 +17617,9 @@ for (var k = 0; k < b0.split(" AND ").length; k++) {
menuTitle.style.color = promptState.titleColor || "unset";
var promptMenuText = document.getElementById("promptMenuText");
promptMenuText.innerText = promptState.text || "";
+ if (promptState.html) {
+ promptMenuText.insertAdjacentHTML("beforeend",promptState.html);
+ }
let promptOK = document.getElementById("promptOK");
let promptCancel = document.getElementById("promptCancel");
let promptConfirm = document.getElementById("promptConfirm");
@@ -19063,7 +19081,9 @@ Cancer, Landmine, Grenade, Smoke Grenade">?
-
+
+
+