ドロンを実装する
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user