This commit is contained in:
esterTion
2021-03-28 18:08:01 +08:00
parent 2b094f2fd8
commit 8ab12140a3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
<div style="white-space:pre-wrap" id="stats"></div>
<div style="display:none"><select id="music_select"></select><br><select id="diffi_select"><option value="0">Normal</option><option value="1">Hard</option><option value="2" selected>Expert</option><option value="3">Inferno</option></select> <input type="button" value="Load" onclick="loadUsingSelect()"></div>
<div><input id="music_input" type="text"/> <input id="bgm_input" type="text"/> <input type="button" value="Load" onclick="loadUsingPath()"></div>
<input type="range" min="10" max="60" step="1" value="40" autocomplete="off" id="speed_input"><span id="speed_val">4.0</span><br>
<input type="range" min="5" max="60" step="1" value="40" autocomplete="off" id="speed_input"><span id="speed_val">4.0</span><br>
<input type="button" value="play" onclick="play()">
<input type="button" value="pause" onclick="pause()">
<input type="button" value="stop" onclick="stop()"><br>
+2 -1
View File
@@ -131,7 +131,7 @@ fetch('Table/MusicParameterTable.json').then(r=>r.json()).then(r => {
let title = r[i].MusicMessage, artist = r[i].ArtistMessage
if (title.length > 15) title = title.substr(0, 10) + '...'
if (artist.length > 15) artist = artist.substr(0, 10) + '...'
option.textContent = `${r[i].AssetDirectory} ${title} - ${artist} (${diffi.join('/')})`
option.textContent = `${r[i].AssetDirectory} (${diffi.join('/')}) ${title} - ${artist}`
})
}).catch(e => {
console.error('failed loading music table', e)
@@ -648,6 +648,7 @@ window.stop = function () {
startedHoldReverseList = {}
drawForNextFrame = true
sflOffset = 0
sfl = 1
}
window.setPlaybackTime = function (time = 0) {
currentTs = Math.round(time * 1000)