mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-25 01:41:45 +00:00
Fixes to shift/ctrl issue and tooltips on nodes
This commit is contained in:
parent
c8bc53ca50
commit
87d394ee27
2 changed files with 7 additions and 2 deletions
|
@ -37,8 +37,8 @@ var systemComponents = {
|
||||||
resetNotify: tmp[layer].prestigeNotify,
|
resetNotify: tmp[layer].prestigeNotify,
|
||||||
can: ((player[layer].unlocked || tmp[layer].isLayer) && tmp[layer].isLayer) || (!tmp[layer].isLayer && tmp[layer].canClick),
|
can: ((player[layer].unlocked || tmp[layer].isLayer) && tmp[layer].isLayer) || (!tmp[layer].isLayer && tmp[layer].canClick),
|
||||||
}"
|
}"
|
||||||
v-bind:style="tmp[layer].computedNodeStyle"
|
v-bind:style="tmp[layer].computedNodeStyle">
|
||||||
v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '">
|
<span v-html="(abb !== '' && tmp[layer].image === undefined) ? abb : ' '"></span>
|
||||||
<tooltip
|
<tooltip
|
||||||
v-bind:text="(tmp[layer].tooltip == '') ? false : (tmp[layer].isLayer) ? (
|
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)
|
player[layer].unlocked ? (tmp[layer].tooltip ? tmp[layer].tooltip : formatWhole(player[layer].points) + ' ' + tmp[layer].resource)
|
||||||
|
|
|
@ -336,6 +336,11 @@ document.onkeydown = function (e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.onkeyup = function (e) {
|
||||||
|
shiftDown = e.shiftKey
|
||||||
|
ctrlDown = e.ctrlKey
|
||||||
|
}
|
||||||
|
|
||||||
var onFocused = false
|
var onFocused = false
|
||||||
function focused(x) {
|
function focused(x) {
|
||||||
onFocused = x
|
onFocused = x
|
||||||
|
|
Loading…
Reference in a new issue