mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 17:56:14 +08:00
fix
This commit is contained in:
parent
da90ccde34
commit
e490f76744
@ -277,7 +277,7 @@ class SongSelect{
|
||||
newSelected = this.songs.findIndex(song => song.action === fromTutorial)
|
||||
}
|
||||
if(newSelected !== -1){
|
||||
this.setSelectedSong(newSelected, drawBg=false)
|
||||
this.setSelectedSong(newSelected, false)
|
||||
this.playBgm(true)
|
||||
}else{
|
||||
if(songId){
|
||||
@ -287,11 +287,11 @@ class SongSelect{
|
||||
}
|
||||
}
|
||||
if(songIdIndex !== -1){
|
||||
this.setSelectedSong(songIdIndex, drawBg=false)
|
||||
this.setSelectedSong(songIdIndex, false)
|
||||
}else if(assets.customSongs){
|
||||
this.setSelectedSong(Math.min(Math.max(0, assets.customSelected), this.songs.length - 1), drawBg=false)
|
||||
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), drawBg=false)
|
||||
this.setSelectedSong(Math.min(Math.max(0, localStorage["selectedSong"] |0), this.songs.length - 1), false)
|
||||
}
|
||||
if(!this.showWarning){
|
||||
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
|
||||
@ -401,7 +401,7 @@ class SongSelect{
|
||||
element.setAttribute("alt", text)
|
||||
}
|
||||
|
||||
setSelectedSong(songIdx, drawBg=true){
|
||||
setSelectedSong(songIdx, drawBg){
|
||||
if(drawBg){
|
||||
var cat = this.songs[songIdx].originalCategory
|
||||
if(cat){
|
||||
|
Loading…
Reference in New Issue
Block a user