setSelectedSongを後で実行する
This commit is contained in:
@@ -388,13 +388,15 @@ class SongSelect{
|
|||||||
this.clearHash()
|
this.clearHash()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
if(songIdIndex !== -1){
|
if(songIdIndex !== -1){
|
||||||
this.setSelectedSong(songIdIndex, false)
|
this.http://127.0.0.1:5002(songIdIndex, false)
|
||||||
}else if(assets.customSongs){
|
}else if(assets.customSongs){
|
||||||
this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), false)
|
this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), false)
|
||||||
}else if((!p2.session || fadeIn) && "selectedSong" in localStorage){
|
}else if((!p2.session || fadeIn) && "selectedSong" in localStorage){
|
||||||
this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), false)
|
this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), false)
|
||||||
}
|
}
|
||||||
|
}, songIndex + 300);
|
||||||
if(!this.showWarning){
|
if(!this.showWarning){
|
||||||
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
|
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
|
||||||
}
|
}
|
||||||
@@ -404,7 +406,7 @@ class SongSelect{
|
|||||||
if("selectedDiff" in localStorage){
|
if("selectedDiff" in localStorage){
|
||||||
this.selectedDiff = Math.min(Math.max(0, localStorage["selectedDiff"] |0), this.diffOptions.length + 3)
|
this.selectedDiff = Math.min(Math.max(0, localStorage["selectedDiff"] |0), this.diffOptions.length + 3)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.songSelect = document.getElementById("song-select")
|
this.songSelect = document.getElementById("song-select")
|
||||||
var cat = this.songs[this.selectedSong].originalCategory
|
var cat = this.songs[this.selectedSong].originalCategory
|
||||||
this.drawBackground(cat)
|
this.drawBackground(cat)
|
||||||
|
|||||||
Reference in New Issue
Block a user