From 59fb5f5ac95012ca7f7e27fb8494455133826f76 Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Sun, 8 Dec 2024 19:04:00 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=83=AD=E3=83=B3=E3=82=92=E5=AE=9F?= =?UTF-8?q?=E8=A3=85=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/js/songselect.js | 21 +++++++++++++++++++++ public/src/js/view.js | 5 ++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index f213554..08a306b 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -243,6 +243,13 @@ class SongSelect{ skin: this.songSkin.customSettings, action: "baisoku", }); + + this.songs.push({ + title: "ドロン", + skin: this.songSkin.customSettings, + action: "doron", + }); + this.songs.push({ title: strings.back, skin: this.songSkin.back, @@ -920,6 +927,20 @@ class SongSelect{ } localStorage.setItem("baisoku", baisoku.toString()); }, 100); + } else if (currentSong.action === "doron") { + this.playSound("se_don"); + setTimeout(() => { + let doron = localStorage.getItem("doron") ?? "false"; + const input = prompt("ドロンを有効にするには\"true\"を入力してね!", doron); + if (input === null) { + // キャンセル + } else if (input === "") { + input = "false"; + } else { + doron = input; + } + localStorage.setItem("doron", doron); + }, 100); } } this.pointer(false) diff --git a/public/src/js/view.js b/public/src/js/view.js index 45e2b96..582ecf5 100644 --- a/public/src/js/view.js +++ b/public/src/js/view.js @@ -1705,7 +1705,10 @@ ctx.fill() ctx.stroke() } - if(!fade || fade < 1){ + + const doron = localStorage.getItem("doron") ?? "false"; + + if((!fade || fade < 1) && doron === "false"){ // Main circle ctx.fillStyle = fill ctx.beginPath()