+ <>
+
This page displays a list of all of your scripts that are currently running across every machine. It also
provides information about each script's production. The scripts are categorized by the hostname of the servers
on which they are running.
-
+
-
+ >
);
}
diff --git a/src/ui/ActiveScripts/ScriptProduction.tsx b/src/ui/ActiveScripts/ScriptProduction.tsx
index f70649f12..13ee22f22 100644
--- a/src/ui/ActiveScripts/ScriptProduction.tsx
+++ b/src/ui/ActiveScripts/ScriptProduction.tsx
@@ -5,16 +5,44 @@
import * as React from "react";
import { WorkerScript } from "../../Netscript/WorkerScript";
-import { IPlayer } from "../../PersonObjects/IPlayer";
import { Money } from "../React/Money";
+import { MoneyRate } from "../React/MoneyRate";
+import { use } from "../Context";
+
+import Typography from "@mui/material/Typography";
+import Box from "@mui/material/Box";
+
+import { Theme } from "@mui/material/styles";
+import makeStyles from "@mui/styles/makeStyles";
+import createStyles from "@mui/styles/createStyles";
+import Table from "@mui/material/Table";
+import TableBody from "@mui/material/TableBody";
+import TableCell from "@mui/material/TableCell";
+import TableContainer from "@mui/material/TableContainer";
+import TableHead from "@mui/material/TableHead";
+import TableRow from "@mui/material/TableRow";
type IProps = {
- p: IPlayer;
workerScripts: Map;
};
+const useStyles = makeStyles((theme: Theme) =>
+ createStyles({
+ cell: {
+ borderBottom: "none",
+ padding: theme.spacing(1),
+ margin: theme.spacing(1),
+ whiteSpace: "nowrap",
+ },
+ size: {
+ width: "1px",
+ },
+ }),
+);
export function ScriptProduction(props: IProps): React.ReactElement {
- const prodRateSinceLastAug = props.p.scriptProdSinceLastAug / (props.p.playtimeSinceLastAug / 1000);
+ const player = use.Player();
+ const classes = useStyles();
+ const prodRateSinceLastAug = player.scriptProdSinceLastAug / (player.playtimeSinceLastAug / 1000);
let onlineProduction = 0;
for (const ws of props.workerScripts.values()) {
@@ -22,27 +50,29 @@ export function ScriptProduction(props: IProps): React.ReactElement {
}
return (
-
- Total online production of Active scripts:
-
-
-
- {" "}
- / sec
-
-
- Total online production since last Aug installation:
-
-
-
- (
-
-
-
- {" "}
- / sec
-
- )
-
+
+
+
+
+ Total online production of Active scripts:
+
+
+
+
+
+
+
+
+
+ Total online production since last Aug installation:
+
+
+
+ ()
+
+
+
+
+
);
}
diff --git a/src/ui/ActiveScripts/ServerAccordion.tsx b/src/ui/ActiveScripts/ServerAccordion.tsx
index 5bb090b25..ca41e0957 100644
--- a/src/ui/ActiveScripts/ServerAccordion.tsx
+++ b/src/ui/ActiveScripts/ServerAccordion.tsx
@@ -4,7 +4,11 @@
*/
import * as React from "react";
-import { BBAccordion } from "../React/BBAccordion";
+import Typography from "@mui/material/Typography";
+import Accordion from "@mui/material/Accordion";
+import AccordionSummary from "@mui/material/AccordionSummary";
+import AccordionDetails from "@mui/material/AccordionDetails";
+import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import { ServerAccordionContent } from "./ServerAccordionContent";
import { BaseServer } from "../../Server/BaseServer";
@@ -34,9 +38,15 @@ export function ServerAccordion(props: IProps): React.ReactElement {
const headerTxt = `${paddedName} ${createProgressBarText(barOptions)}`;
return (
- {headerTxt}}
- panelContent={}
- />
+
+ }>
+
+ {headerTxt}
+
+
+
+
+
+
);
}
diff --git a/src/ui/ActiveScripts/ServerAccordionContent.tsx b/src/ui/ActiveScripts/ServerAccordionContent.tsx
index 308f2f8ad..7f288be6f 100644
--- a/src/ui/ActiveScripts/ServerAccordionContent.tsx
+++ b/src/ui/ActiveScripts/ServerAccordionContent.tsx
@@ -14,11 +14,13 @@ export function ServerAccordionContent(props: IProps): React.ReactElement {
return ;
}
- const scripts = props.workerScripts.map((ws) => {
- return ;
- });
-
- return
{Reputation(player.workRepGained)} ({ReputationRate(player.workRepGainRate * CYCLES_PER_SEC)}) reputation for
this faction
@@ -112,7 +113,8 @@ export function WorkInProgressRoot(): React.ReactElement {
This has cost you:
- ({MoneyRate(player.workMoneyLossRate * CYCLES_PER_SEC)})
+ (){" "}
+
You have gained:
{numeralWrapper.formatExp(player.workHackExpGained)} (
@@ -173,7 +175,8 @@ export function WorkInProgressRoot(): React.ReactElement {
You have earned:
{Reputation(player.workRepGained)} ({ReputationRate(player.workRepGainRate * CYCLES_PER_SEC)}) reputation for
this company
@@ -241,7 +244,8 @@ export function WorkInProgressRoot(): React.ReactElement {
You have earned: