all research tooltip are always visible

This commit is contained in:
Olivier Gagnon 2021-09-10 12:26:53 -04:00
parent 9df926427b
commit 4b051468ad
2 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

@ -69,13 +69,13 @@ export class Node {
}
// Determine what css class this Node should have in the diagram
let htmlClass = "";
let htmlClass = "tooltip";
if (this.researched) {
htmlClass = "researched";
htmlClass += " researched";
} else if (this.parent && this.parent.researched === false) {
htmlClass = "locked";
htmlClass += " locked";
} else {
htmlClass = "unlocked";
htmlClass += " unlocked";
}
const research: Research | null = ResearchMap[this.text];
@ -84,7 +84,7 @@ export class Node {
children: childrenArray,
HTMLclass: htmlClass,
innerHTML:
`<div id="${sanitizedName}-corp-research-click-listener" class="tooltip">` +
`<div id="${sanitizedName}-corp-research-click-listener">` +
`${this.text}<br>${numeralWrapper.format(this.cost, "0,0")} Scientific Research` +
`<span class="tooltiptext">` +
`${research.desc}` +