mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +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:
@@ -385,9 +385,8 @@ function LogWindow(props: IProps): React.ReactElement {
|
||||
>
|
||||
<div style={{ display: "flex", flexDirection: "column" }}>
|
||||
{script.logs.map(
|
||||
(line: string, i: number): JSX.Element => (
|
||||
<ANSIITypography key={i} text={line} color={lineColor(line)} />
|
||||
),
|
||||
(line: React.ReactNode, i: number): React.ReactNode =>
|
||||
typeof line !== "string" ? line : <ANSIITypography key={i} text={line} color={lineColor(line)} />,
|
||||
)}
|
||||
</div>
|
||||
</Paper>
|
||||
|
||||
Reference in New Issue
Block a user