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:
parent
c8bc53ca50
commit
87d394ee27
2 changed files with 7 additions and 2 deletions
|
@ -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 : ' '"></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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue