mirror of
https://gitea.tendokyu.moe/yellowberry/MercuryPlayer.git
synced 2026-10-11 08:48:18 +03:00
fix
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user