mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-08 22:37:37 +01:00
all research tooltip are always visible
This commit is contained in:
parent
9df926427b
commit
4b051468ad
2
dist/engine.bundle.js
vendored
2
dist/engine.bundle.js
vendored
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
|
// Determine what css class this Node should have in the diagram
|
||||||
let htmlClass = "";
|
let htmlClass = "tooltip";
|
||||||
if (this.researched) {
|
if (this.researched) {
|
||||||
htmlClass = "researched";
|
htmlClass += " researched";
|
||||||
} else if (this.parent && this.parent.researched === false) {
|
} else if (this.parent && this.parent.researched === false) {
|
||||||
htmlClass = "locked";
|
htmlClass += " locked";
|
||||||
} else {
|
} else {
|
||||||
htmlClass = "unlocked";
|
htmlClass += " unlocked";
|
||||||
}
|
}
|
||||||
|
|
||||||
const research: Research | null = ResearchMap[this.text];
|
const research: Research | null = ResearchMap[this.text];
|
||||||
@ -84,7 +84,7 @@ export class Node {
|
|||||||
children: childrenArray,
|
children: childrenArray,
|
||||||
HTMLclass: htmlClass,
|
HTMLclass: htmlClass,
|
||||||
innerHTML:
|
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` +
|
`${this.text}<br>${numeralWrapper.format(this.cost, "0,0")} Scientific Research` +
|
||||||
`<span class="tooltiptext">` +
|
`<span class="tooltiptext">` +
|
||||||
`${research.desc}` +
|
`${research.desc}` +
|
||||||
|
Loading…
Reference in New Issue
Block a user