From 94576040434e628528747376d51a70139d8a028f Mon Sep 17 00:00:00 2001 From: yuukiwww <0xv75b42326631e@au.com> Date: Tue, 11 Feb 2025 06:35:59 +0000 Subject: [PATCH] =?UTF-8?q?setSelectedSong=E3=82=92=E5=BE=8C=E3=81=A7?= =?UTF-8?q?=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/src/js/songselect.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 27374d5..382964c 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -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") } @@ -404,7 +406,7 @@ class SongSelect{ if("selectedDiff" in localStorage){ this.selectedDiff = Math.min(Math.max(0, localStorage["selectedDiff"] |0), this.diffOptions.length + 3) } - + this.songSelect = document.getElementById("song-select") var cat = this.songs[this.selectedSong].originalCategory this.drawBackground(cat)