mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-24 09:21:46 +00:00
Alpha Build 2 Patch 1
This commit is contained in:
parent
220b9fd841
commit
0d9e81d7f9
2 changed files with 5 additions and 3 deletions
|
@ -10,10 +10,8 @@
|
||||||
</head>
|
</head>
|
||||||
<body onload="load()">
|
<body onload="load()">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<img id="optionWheel" v-if="player.tab!='options'" src="options_wheel.png" onclick="showTab('options')"></img>
|
|
||||||
<div id="info" v-if="player.tab=='tree'" onclick="showTab('info')"><br>i</div>
|
<div id="info" v-if="player.tab=='tree'" onclick="showTab('info')"><br>i</div>
|
||||||
<div class="vl"></div>
|
<div class="vl"></div>
|
||||||
<br><br>
|
|
||||||
<div v-if="player.tab=='info'" class="col right">
|
<div v-if="player.tab=='info'" class="col right">
|
||||||
<button class="back" onclick="showTab('tree')">←</button><br><br><br><br><br>
|
<button class="back" onclick="showTab('tree')">←</button><br><br><br><br><br>
|
||||||
<h3>Hotkeys</h3><br><br>
|
<h3>Hotkeys</h3><br><br>
|
||||||
|
@ -41,7 +39,8 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="col left">
|
<div class="col left">
|
||||||
You have <h2>{{format(player.points)}}</h2> Points
|
<img id="optionWheel" v-if="player.tab!='options'" src="options_wheel.png" onclick="showTab('options')"></img>
|
||||||
|
<br>You have <h2>{{format(player.points)}}</h2> Points
|
||||||
<br><br><br><br><br>
|
<br><br><br><br><br>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -990,10 +990,12 @@ function hardReset() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var saveInterval = setInterval(function() {
|
var saveInterval = setInterval(function() {
|
||||||
|
if (player===undefined) return;
|
||||||
if (player.autosave) save();
|
if (player.autosave) save();
|
||||||
}, 5000)
|
}, 5000)
|
||||||
|
|
||||||
var interval = setInterval(function() {
|
var interval = setInterval(function() {
|
||||||
|
if (player===undefined) return;
|
||||||
let diff = (Date.now()-player.time)/1000
|
let diff = (Date.now()-player.time)/1000
|
||||||
player.time = Date.now()
|
player.time = Date.now()
|
||||||
if (needCanvasUpdate && player.tab=="tree") resizeCanvas();
|
if (needCanvasUpdate && player.tab=="tree") resizeCanvas();
|
||||||
|
@ -1001,6 +1003,7 @@ var interval = setInterval(function() {
|
||||||
}, 50)
|
}, 50)
|
||||||
|
|
||||||
document.onkeydown = function(e) {
|
document.onkeydown = function(e) {
|
||||||
|
if (player===undefined) return;
|
||||||
let shiftDown = e.shiftKey
|
let shiftDown = e.shiftKey
|
||||||
let key = e.key
|
let key = e.key
|
||||||
if (!LAYERS.includes(key)) return
|
if (!LAYERS.includes(key)) return
|
||||||
|
|
Loading…
Reference in a new issue