mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 09:46:15 +08:00
Fix backgrounds in multiplayer
This commit is contained in:
parent
f523700dc4
commit
edd76b55a4
@ -26,6 +26,18 @@
|
||||
}
|
||||
.portrait #songbg{
|
||||
height: 63.4%;
|
||||
max-height: calc(50% + 24vw);
|
||||
}
|
||||
.touchp2 #songbg{
|
||||
height: calc(50% - 5.5vw);
|
||||
}
|
||||
.multiplayer.portrait #songbg{
|
||||
height: calc(50% - 37vw);
|
||||
min-height: calc(29% + 1px);
|
||||
}
|
||||
.multiplayer:not(.touchp2):not(.portrait) #songbg,
|
||||
.multiplayer:not(.touchp2):not(.portrait) #song-stage{
|
||||
display: none;
|
||||
}
|
||||
.game-paused *{
|
||||
animation-play-state: paused !important;
|
||||
|
@ -113,12 +113,16 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!this.multiplayer){
|
||||
if(this.multiplayer){
|
||||
this.gameDiv.classList.add("multiplayer")
|
||||
}else{
|
||||
pageEvents.add(this.canvas, "mousedown", this.onmousedown.bind(this))
|
||||
}
|
||||
}
|
||||
run(){
|
||||
this.setBackground()
|
||||
if(this.multiplayer !== 2){
|
||||
this.setBackground()
|
||||
}
|
||||
|
||||
this.lastMousemove = this.controller.getElapsedTime()
|
||||
pageEvents.mouseAdd(this, this.onmousemove.bind(this))
|
||||
@ -952,7 +956,6 @@
|
||||
}
|
||||
}
|
||||
setBackground(){
|
||||
var gameDiv = document.getElementById("game")
|
||||
var songBg = document.getElementById("songbg")
|
||||
var songStage = document.getElementById("song-stage")
|
||||
|
||||
@ -962,7 +965,7 @@
|
||||
}else{
|
||||
var catId = this.categories.default.sort
|
||||
}
|
||||
this.setBgImage(gameDiv, assets.image["bg_genre_" + catId].src)
|
||||
this.setBgImage(this.gameDiv, assets.image["bg_genre_" + catId].src)
|
||||
|
||||
if(selectedSong.customBg){
|
||||
var bg = gameConfig.songs_baseurl + selectedSong.folder + "/bg.png"
|
||||
|
Loading…
Reference in New Issue
Block a user