mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-22 19:01:51 +08:00
Fix results not showing in Firefox
This commit is contained in:
parent
fb836d7e77
commit
ab1835aa48
@ -132,7 +132,9 @@ class Controller{
|
||||
this.view.displayScore(score, notPlayed)
|
||||
}
|
||||
songSelection(fadeIn){
|
||||
this.clean()
|
||||
if(!fadeIn){
|
||||
this.clean()
|
||||
}
|
||||
new SongSelect(false, fadeIn)
|
||||
}
|
||||
restartSong(){
|
||||
|
@ -132,7 +132,7 @@ class Scoresheet{
|
||||
var frameTop = winH / 2 - 720 / 2
|
||||
var frameLeft = winW / 2 - 1280 / 2
|
||||
|
||||
var players = p2.results ? 2 : 1
|
||||
var players = this.multiplayer && p2.results ? 2 : 1
|
||||
var p2Offset = 298
|
||||
|
||||
var bgOffset = 0
|
||||
@ -372,10 +372,12 @@ class Scoresheet{
|
||||
552, 120, 688, 48
|
||||
)
|
||||
var gauge = results.gauge / 100
|
||||
ctx.drawImage(assets.image["hp-bar-colour"],
|
||||
0, 0, 650 * gauge, 40,
|
||||
557, 127, 635 * gauge, 37,
|
||||
)
|
||||
if(gauge > 0){
|
||||
ctx.drawImage(assets.image["hp-bar-colour"],
|
||||
0, 0, 650 * gauge, 40,
|
||||
557, 127, 635 * gauge, 37,
|
||||
)
|
||||
}
|
||||
}
|
||||
ctx.restore()
|
||||
}
|
||||
|
@ -820,6 +820,7 @@ class View{
|
||||
if(this.controller.multiplayer === 2){
|
||||
this.canvas.canvas.parentNode.removeChild(this.canvas.canvas)
|
||||
}
|
||||
this.cursor.parentNode.removeChild(this.cursor)
|
||||
delete this.pauseMenu
|
||||
delete this.cursor
|
||||
delete this.canvas
|
||||
|
Loading…
Reference in New Issue
Block a user