Add lyrics

This commit is contained in:
LoveEevee
2020-03-30 09:50:34 +03:00
parent 20b964ab2e
commit 3679c27986
11 changed files with 330 additions and 5 deletions

View File

@@ -57,6 +57,10 @@ class Controller{
if(song.id == this.selectedSong.folder){
this.mainAsset = song.sound
this.volume = song.volume || 1
if(song.lyricsData && !multiplayer && (!this.touchEnabled || this.autoPlayEnabled)){
var lyricsDiv = document.getElementById("song-lyrics")
this.lyrics = new Lyrics(song.lyricsData, selectedSong.offset, lyricsDiv)
}
}
})
}
@@ -316,5 +320,8 @@ class Controller{
debugObj.debug.updateStatus()
}
}
if(this.lyrics){
this.lyrics.clean()
}
}
}