Changed look of song loading, fix custom game assets and song skins, fix auth error

- Change the way a selected song appears while it is loading the metadata
- Fix custom taikowebskin
- Fix importing custom game assets (local only)
- Get the oauth token again on auth error
This commit is contained in:
LoveEevee
2020-10-31 14:47:42 +03:00
parent c5ce5104f1
commit 180ec58adb
10 changed files with 103 additions and 59 deletions

View File

@@ -108,7 +108,9 @@ class LoadSong{
return this.scaleImg(img, filename, prefix, force)
}), songObj.custom ? filename + ".png" : skinBase + filename + ".png")
if(songObj.custom){
img.src = URL.createObjectURL(song.songSkin[filename + ".png"])
this.addPromise(song.songSkin[filename + ".png"].blob().then(blob => {
img.src = URL.createObjectURL(blob)
}))
}else{
img.src = skinBase + filename + ".png"
}