mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-21 16:13:54 +00:00
Fixed tree node locked tooltip appearing before unlocking the layer
This commit is contained in:
parent
514752056c
commit
f1340b1b24
2 changed files with 1 additions and 2 deletions
|
@ -83,7 +83,6 @@ export default {
|
|||
},
|
||||
openDialog(dialog) {
|
||||
this[`show${dialog}`] = true;
|
||||
console.log(`show${dialog}`, this[`show${dialog}`]);
|
||||
},
|
||||
closeDialog(dialog) {
|
||||
this[`show${dialog}`] = false;
|
||||
|
|
|
@ -72,7 +72,7 @@ export default {
|
|||
return this.layer.tooltipLocked || this.layer.tooltip || 'I am a button!';
|
||||
}
|
||||
}
|
||||
if (this.layer.unlocked) {
|
||||
if (player[this.id].unlocked) {
|
||||
return this.layer.tooltip || `${formatWhole(player[this.id].points)} ${this.layer.resource}`;
|
||||
} else {
|
||||
return this.layer.tooltipLocked ||
|
||||
|
|
Loading…
Reference in a new issue