This commit is contained in:
Renan LE CARO 2025-05-03 19:41:45 +02:00
parent 258d578ad3
commit 9731d694f3
8 changed files with 791 additions and 722 deletions

View file

@ -82,7 +82,7 @@ import { monitorLevelsUnlocks } from "./monitorLevelsUnlocks";
import { levelEditorMenuEntry } from "./levelEditor";
import { categories } from "./upgrades";
import { reasonLevelIsLocked } from "./get_level_unlock_condition";
import { toast } from "./toast";
import {clearToasts, toast} from "./toast";
export async function play() {
if (await applyFullScreenChoice()) return;
@ -263,8 +263,12 @@ function startPlayCountDown() {
play();
}, 3000),
);
timers.push(setTimeout(() => clearToasts(), 3500));
}
function stopPlayCountDown() {
if(!timers.length) return
clearToasts()
timers.forEach((id) => clearTimeout(id));
timers.length = 0;
}