mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-21 16:13:55 +00:00
Background style
This commit is contained in:
parent
f08bae4b40
commit
99b92daa91
4 changed files with 20 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
|||
</head>
|
||||
|
||||
<body onload="load()" onmousemove="updateMouse(event)">
|
||||
<div id="app" v-bind:style = "tmp.backgroundStyle">
|
||||
<div id="app">
|
||||
<canvas id="treeCanvas" class="canvas" v-if="!(gameEnded && !player.keepGoing)"></canvas>
|
||||
|
||||
<div v-if="false" id="loadingSection" class="fullWidth">
|
||||
|
@ -126,5 +126,7 @@
|
|||
<bg :layer="player.tab" ></bg>
|
||||
|
||||
</div>
|
||||
<div class = "bg2" v-bind:style = "tmp.backgroundStyle"></div>
|
||||
|
||||
</div>
|
||||
</body>
|
|
@ -66,6 +66,10 @@ function isEndgame() {
|
|||
|
||||
// Less important things beyond this point!
|
||||
|
||||
// Style for the background, can be a function
|
||||
var backgroundStyle = {
|
||||
}
|
||||
|
||||
// You can change this if you have things that can be messed up by long tick lengths
|
||||
function maxTickLength() {
|
||||
return(3600) // Default is 1 hour which is just arbitrarily large
|
||||
|
|
|
@ -62,6 +62,11 @@ function isEndgame() {
|
|||
|
||||
// Less important things beyond this point!
|
||||
|
||||
// Style for the background, can be a function
|
||||
var backgroundStyle = {
|
||||
|
||||
}
|
||||
|
||||
// You can change this if you have things that can be messed up by long tick lengths
|
||||
function maxTickLength() {
|
||||
return(3600) // Default is 1 hour which is just arbitrarily large
|
||||
|
|
|
@ -769,6 +769,14 @@ button > * {
|
|||
top: 0
|
||||
}
|
||||
|
||||
.bg2 {
|
||||
z-index: -9009;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0
|
||||
}
|
||||
|
||||
.noBackground {
|
||||
background: transparent !important;
|
||||
background-image: none !important;
|
||||
|
|
Loading…
Reference in a new issue