This commit is contained in:
parent
45cea3f642
commit
7bbc48f011
29
index.html
29
index.html
|
|
@ -16230,10 +16230,25 @@ behaviorRules = {
|
||||||
}
|
}
|
||||||
function resetPrompt() {
|
function resetPrompt() {
|
||||||
if (settings.resetwarning === 0 || currentPixels.length===0) { autoResizeCanvas(); focusGame(); return }
|
if (settings.resetwarning === 0 || currentPixels.length===0) { autoResizeCanvas(); focusGame(); return }
|
||||||
promptConfirm("Are you sure you want to clear the whole scene?",(r) => {
|
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();
|
if (r) autoResizeCanvas();
|
||||||
focusGame();
|
focusGame();
|
||||||
},"Clear Canvas")
|
},
|
||||||
|
html: standalone ? null : `<br><br><p style="text-align:center"><input id="playlightButton" class="button" type="button" onclick="loadPlaylight();" value="Play More Games" style=""></input></p>`,
|
||||||
|
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() {
|
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 + ".",
|
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";
|
menuTitle.style.color = promptState.titleColor || "unset";
|
||||||
var promptMenuText = document.getElementById("promptMenuText");
|
var promptMenuText = document.getElementById("promptMenuText");
|
||||||
promptMenuText.innerText = promptState.text || "";
|
promptMenuText.innerText = promptState.text || "";
|
||||||
|
if (promptState.html) {
|
||||||
|
promptMenuText.insertAdjacentHTML("beforeend",promptState.html);
|
||||||
|
}
|
||||||
let promptOK = document.getElementById("promptOK");
|
let promptOK = document.getElementById("promptOK");
|
||||||
let promptCancel = document.getElementById("promptCancel");
|
let promptCancel = document.getElementById("promptCancel");
|
||||||
let promptConfirm = document.getElementById("promptConfirm");
|
let promptConfirm = document.getElementById("promptConfirm");
|
||||||
|
|
@ -19063,7 +19081,9 @@ Cancer, Landmine, Grenade, Smoke Grenade">?</span>
|
||||||
<option value="uk">Українська Мова</option>
|
<option value="uk">Українська Мова</option>
|
||||||
<option value="xem">😂🗣</option>
|
<option value="xem">😂🗣</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</select></p>
|
</select>
|
||||||
|
|
||||||
|
<input id="playlightButton" type="submit" onclick="loadPlaylight();" value="More Games" style="background: rgb(23, 166, 255); padding:15px; border-radius: 20px"></input></p>
|
||||||
<script>
|
<script>
|
||||||
if (standalone) { // move langSelect to Settings
|
if (standalone) { // move langSelect to Settings
|
||||||
let span = document.getElementById("setting-span-lang");
|
let span = document.getElementById("setting-span-lang");
|
||||||
|
|
@ -19121,8 +19141,7 @@ if (document.referrer && document.referrer.indexOf("r74n.") === -1) {
|
||||||
<div>
|
<div>
|
||||||
<p>Try our NEW GAME: <a href="https://R74n.com/cook/" target="_blank">Infinite Chef</a></p>
|
<p>Try our NEW GAME: <a href="https://R74n.com/cook/" target="_blank">Infinite Chef</a></p>
|
||||||
<p>Email us at <a href="mailto:contact@R74n.com?subject=%5BSandboxels%5D">contact@R74n.com</a> for advertising, help, or education!</p>
|
<p>Email us at <a href="mailto:contact@R74n.com?subject=%5BSandboxels%5D">contact@R74n.com</a> for advertising, help, or education!</p>
|
||||||
<!-- <p>Support development by subscribing on <a href="https://www.patreon.com/R74n" rel="me" target="_blank">our Patreon</a>! Many benefits!!</p> -->
|
<p>Support development by subscribing on <a href="https://www.patreon.com/R74n" rel="me" target="_blank">our Patreon</a>! Many benefits!!</p>
|
||||||
<input id="playlightButton" type="submit" onclick="loadPlaylight();" value="More Games" style="background: rgb(23, 166, 255); padding:15px; border-radius: 20px"></input>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -625,7 +625,7 @@ button, input { /*Disable double tap zoom on mobile devices*/
|
||||||
touch-action: manipulation;
|
touch-action: manipulation;
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
.settingsButton, select, .toggleInput, #settingsMenu input[type="number"], #settingsMenu input[type="text"], #savePromptMenu input, input[type="email"], input[type="number"] {
|
.settingsButton, select, .toggleInput, #settingsMenu input[type="number"], #settingsMenu input[type="text"], #savePromptMenu input, input[type="email"], input[type="number"], .button {
|
||||||
background-color: var(--theme-darkest2);
|
background-color: var(--theme-darkest2);
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
|
|
@ -640,7 +640,7 @@ button, input { /*Disable double tap zoom on mobile devices*/
|
||||||
font-family: 'VT323';
|
font-family: 'VT323';
|
||||||
font-size:1.5em
|
font-size:1.5em
|
||||||
}
|
}
|
||||||
#settingsMenu .toggleInput, #settingsMenu .menuText button, #settingsMenu input[type], #settingsMenu select {
|
#settingsMenu .toggleInput, #settingsMenu .menuText button, #settingsMenu input[type], #settingsMenu select, .button {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: 'VT323';
|
font-family: 'VT323';
|
||||||
|
|
@ -648,6 +648,10 @@ button, input { /*Disable double tap zoom on mobile devices*/
|
||||||
padding-right:13px;
|
padding-right:13px;
|
||||||
margin:0
|
margin:0
|
||||||
}
|
}
|
||||||
|
.button {
|
||||||
|
cursor:pointer;
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
#settingsMenu input[type=color] {
|
#settingsMenu input[type=color] {
|
||||||
padding:0;
|
padding:0;
|
||||||
background-color: var(--theme-dark);
|
background-color: var(--theme-dark);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue