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)
|
newSelected = this.songs.findIndex(song => song.action === fromTutorial)
|
||||||
}
|
}
|
||||||
if(newSelected !== -1){
|
if(newSelected !== -1){
|
||||||
this.setSelectedSong(newSelected, drawBg=false)
|
this.setSelectedSong(newSelected, false)
|
||||||
this.playBgm(true)
|
this.playBgm(true)
|
||||||
}else{
|
}else{
|
||||||
if(songId){
|
if(songId){
|
||||||
@ -287,11 +287,11 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(songIdIndex !== -1){
|
if(songIdIndex !== -1){
|
||||||
this.setSelectedSong(songIdIndex, drawBg=false)
|
this.setSelectedSong(songIdIndex, false)
|
||||||
}else if(assets.customSongs){
|
}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){
|
}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){
|
if(!this.showWarning){
|
||||||
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
|
this.playSound(songIdIndex !== -1 ? "v_diffsel" : "v_songsel")
|
||||||
@ -401,7 +401,7 @@ class SongSelect{
|
|||||||
element.setAttribute("alt", text)
|
element.setAttribute("alt", text)
|
||||||
}
|
}
|
||||||
|
|
||||||
setSelectedSong(songIdx, drawBg=true){
|
setSelectedSong(songIdx, drawBg){
|
||||||
if(drawBg){
|
if(drawBg){
|
||||||
var cat = this.songs[songIdx].originalCategory
|
var cat = this.songs[songIdx].originalCategory
|
||||||
if(cat){
|
if(cat){
|
||||||
|
Loading…
Reference in New Issue
Block a user