曲選択を設定で出来るようにする
This commit is contained in:
@@ -88,6 +88,12 @@ class SongSelect{
|
|||||||
border: ["#000000", "#333333"],
|
border: ["#000000", "#333333"],
|
||||||
outline: "#222222",
|
outline: "#222222",
|
||||||
},
|
},
|
||||||
|
"customSettings": {
|
||||||
|
sort: 0,
|
||||||
|
background: "#a5d6a7", // 緑色の背景
|
||||||
|
border: ["#81c784", "#66bb6a"], // 緑色の境界線
|
||||||
|
outline: "#388e3c" // 緑色のアウトライン
|
||||||
|
},
|
||||||
"default": {
|
"default": {
|
||||||
sort: null,
|
sort: null,
|
||||||
background: `${rand()}`,
|
background: `${rand()}`,
|
||||||
@@ -226,6 +232,12 @@ class SongSelect{
|
|||||||
action: "keijiban",
|
action: "keijiban",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.songs.push({
|
||||||
|
title: "曲選択速度",
|
||||||
|
skin: this.songSkin.customSettings,
|
||||||
|
action: "songSelectingSpeed",
|
||||||
|
});
|
||||||
|
|
||||||
this.songs.push({
|
this.songs.push({
|
||||||
title: strings.back,
|
title: strings.back,
|
||||||
skin: this.songSkin.back,
|
skin: this.songSkin.back,
|
||||||
@@ -362,12 +374,8 @@ class SongSelect{
|
|||||||
focused: true,
|
focused: true,
|
||||||
waitPreview: 0
|
waitPreview: 0
|
||||||
}
|
}
|
||||||
let songSelectingSpeed = prompt("スクロール速度を入力してね!", 400);
|
|
||||||
if (songSelectingSpeed === null || songSelectingSpeed === "") {
|
|
||||||
songSelectingSpeed = 400;
|
|
||||||
}
|
|
||||||
this.songSelecting = {
|
this.songSelecting = {
|
||||||
speed: songSelectingSpeed,
|
speed: localStorage.getItem("songSelectingSpeed") ?? 400,
|
||||||
resize: 0.3,
|
resize: 0.3,
|
||||||
scrollDelay: 0.1
|
scrollDelay: 0.1
|
||||||
}
|
}
|
||||||
@@ -878,6 +886,16 @@ class SongSelect{
|
|||||||
this.playSound("se_don");
|
this.playSound("se_don");
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.href = "https://litey.trade/";
|
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);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user