1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-22 00:21:32 +00:00

Background style

This commit is contained in:
Harley White 2021-06-07 00:00:30 -04:00
parent f08bae4b40
commit 99b92daa91
4 changed files with 20 additions and 1 deletions

View file

@ -32,7 +32,7 @@
</head> </head>
<body onload="load()" onmousemove="updateMouse(event)"> <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> <canvas id="treeCanvas" class="canvas" v-if="!(gameEnded && !player.keepGoing)"></canvas>
<div v-if="false" id="loadingSection" class="fullWidth"> <div v-if="false" id="loadingSection" class="fullWidth">
@ -126,5 +126,7 @@
<bg :layer="player.tab" ></bg> <bg :layer="player.tab" ></bg>
</div> </div>
<div class = "bg2" v-bind:style = "tmp.backgroundStyle"></div>
</div> </div>
</body> </body>

View file

@ -66,6 +66,10 @@ function isEndgame() {
// Less important things beyond this point! // 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 // You can change this if you have things that can be messed up by long tick lengths
function maxTickLength() { function maxTickLength() {
return(3600) // Default is 1 hour which is just arbitrarily large return(3600) // Default is 1 hour which is just arbitrarily large

View file

@ -62,6 +62,11 @@ function isEndgame() {
// Less important things beyond this point! // 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 // You can change this if you have things that can be messed up by long tick lengths
function maxTickLength() { function maxTickLength() {
return(3600) // Default is 1 hour which is just arbitrarily large return(3600) // Default is 1 hour which is just arbitrarily large

View file

@ -769,6 +769,14 @@ button > * {
top: 0 top: 0
} }
.bg2 {
z-index: -9009;
width: 100%;
height: 100%;
position: absolute;
top: 0
}
.noBackground { .noBackground {
background: transparent !important; background: transparent !important;
background-image: none !important; background-image: none !important;