あべこべを実装する

This commit is contained in:
yuuki
2024-12-08 19:40:13 +09:00
parent 59fb5f5ac9
commit ebf57a832c
3 changed files with 39 additions and 2 deletions

View File

@@ -250,6 +250,12 @@ class SongSelect{
action: "doron",
});
this.songs.push({
title: "あべこべ",
skin: this.songSkin.customSettings,
action: "abekobe",
});
this.songs.push({
title: strings.back,
skin: this.songSkin.back,
@@ -941,6 +947,20 @@ class SongSelect{
}
localStorage.setItem("doron", doron);
}, 100);
} else if (currentSong.action === "abekobe") {
this.playSound("se_don");
setTimeout(() => {
let abekobe = localStorage.getItem("abekobe") ?? "false";
const input = prompt("あべこべを有効にするには\"true\"を入力してね!", abekobe);
if (input === null) {
// キャンセル
} else if (input === "") {
input = "false";
} else {
abekobe = input;
}
localStorage.setItem("abekobe", abekobe);
}, 100);
}
}
this.pointer(false)