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

Fixes to shift/ctrl issue and tooltips on nodes

This commit is contained in:
Harley White 2021-04-28 02:48:14 -04:00
parent c8bc53ca50
commit 87d394ee27
2 changed files with 7 additions and 2 deletions

View file

@ -37,8 +37,8 @@ var systemComponents = {
resetNotify: tmp[layer].prestigeNotify,
can: ((player[layer].unlocked || tmp[layer].isLayer) && tmp[layer].isLayer) || (!tmp[layer].isLayer && tmp[layer].canClick),
}"
v-bind:style="tmp[layer].computedNodeStyle"
v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '">
v-bind:style="tmp[layer].computedNodeStyle">
<span v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : '&nbsp;'"></span>
<tooltip
v-bind:text="(tmp[layer].tooltip == '') ? false : (tmp[layer].isLayer) ? (
player[layer].unlocked ? (tmp[layer].tooltip ? tmp[layer].tooltip : formatWhole(player[layer].points) + ' ' + tmp[layer].resource)

View file

@ -336,6 +336,11 @@ document.onkeydown = function (e) {
}
}
document.onkeyup = function (e) {
shiftDown = e.shiftKey
ctrlDown = e.ctrlKey
}
var onFocused = false
function focused(x) {
onFocused = x