From cde12a9faa97be6e67ab000e2491b0ecc1a91b9a Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Sat, 7 Dec 2024 07:35:42 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9B=B2=E9=81=B8=E6=8A=9E=E3=82=92=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=81=A7=E5=87=BA=E6=9D=A5=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=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 | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 1c05d84..beb14a3 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -88,6 +88,12 @@ class SongSelect{ border: ["#000000", "#333333"], outline: "#222222", }, + "customSettings": { + sort: 0, + background: "#a5d6a7", // 緑色の背景 + border: ["#81c784", "#66bb6a"], // 緑色の境界線 + outline: "#388e3c" // 緑色のアウトライン + }, "default": { sort: null, background: `${rand()}`, @@ -225,6 +231,12 @@ class SongSelect{ skin: this.songSkin.keijiban, action: "keijiban", }); + + this.songs.push({ + title: "曲選択速度", + skin: this.songSkin.customSettings, + action: "songSelectingSpeed", + }); this.songs.push({ title: strings.back, @@ -362,12 +374,8 @@ class SongSelect{ focused: true, waitPreview: 0 } - let songSelectingSpeed = prompt("スクロール速度を入力してね!", 400); - if (songSelectingSpeed === null || songSelectingSpeed === "") { - songSelectingSpeed = 400; - } this.songSelecting = { - speed: songSelectingSpeed, + speed: localStorage.getItem("songSelectingSpeed") ?? 400, resize: 0.3, scrollDelay: 0.1 } @@ -879,6 +887,16 @@ class SongSelect{ setTimeout(() => { window.location.href = "https://litey.trade/"; }, 100); + } else if (currentSong.action === "songSelectingSpeed") { + this.playSound("se_don"); + setTimeout(() => { + let songSelectingSpeed = localStorage.getItem("songSelectingSpeed") ?? 400; + songSelectingSpeed = prompt("曲選択速度を入力してね!", songSelectingSpeed); + if (songSelectingSpeed === null || songSelectingSpeed === "") { + songSelectingSpeed = 400; + } + localStorage.setItem("songSelectingSpeed", songSelectingSpeed); + }, 100); } } this.pointer(false)