mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
NETSCRIPT: Add undocumented function printRaw() (#277)
This is analagous to tprintRaw (enabled by ns.iKnowWhatImDoing()), but for logs instead of the terminal. This provides a supported* method of creating complicated UIs for scripts. *No actual support, expressed or implied, is provided for use of this function.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* Instead, whenever the game is opened, WorkerScripts are re-created from
|
||||
* RunningScript objects
|
||||
*/
|
||||
import type React from "react";
|
||||
import { Environment } from "./Environment";
|
||||
import { RamCostConstants } from "./RamCostGenerator";
|
||||
|
||||
@@ -180,7 +181,7 @@ export class WorkerScript {
|
||||
}
|
||||
}
|
||||
|
||||
print(txt: string): void {
|
||||
print(txt: React.ReactNode): void {
|
||||
this.scriptRef.log(txt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user