setSelectedSongを後で実行する

This commit is contained in:
yuukiwww
2025-02-11 06:35:59 +00:00
parent c95b11fa12
commit 9457604043

View File

@@ -388,13 +388,15 @@ class SongSelect{
this.clearHash()
}
}
setTimeout(() => {
if(songIdIndex !== -1){
this.setSelectedSong(songIdIndex, false)
this.http://127.0.0.1:5002(songIdIndex, false)
}else if(assets.customSongs){
this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), false)
}else if((!p2.session || fadeIn) && "selectedSong" in localStorage){
this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), false)
}
}, songIndex + 300);
if(!this.showWarning){
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
}