bitburner-src/src/Literature/LiteratureHelpers.ts

12 lines
315 B
TypeScript
Raw Normal View History

2021-03-14 07:08:24 +01:00
import { Literatures } from "./Literatures";
2021-09-25 20:42:57 +02:00
import { dialogBoxCreate } from "../ui/React/DialogBox";
2021-03-14 07:08:24 +01:00
export function showLiterature(fn: string): void {
2021-09-05 01:09:30 +02:00
const litObj = Literatures[fn];
if (litObj == null) {
return;
}
const txt = `<i>${litObj.title}</i><br><br>${litObj.txt}`;
dialogBoxCreate(txt);
2021-03-14 07:08:24 +01:00
}