bitburner-src/src/Tutorial/ui/TutorialRoot.tsx

134 lines
4.3 KiB
TypeScript
Raw Normal View History

2021-12-17 02:53:44 +01:00
import React, { useState } from "react";
2021-09-10 22:08:58 +02:00
2021-09-22 09:30:06 +02:00
import Typography from "@mui/material/Typography";
import Link from "@mui/material/Link";
import Box from "@mui/material/Box";
2021-12-14 00:44:52 +01:00
import Button from "@mui/material/Button";
2021-12-17 02:53:44 +01:00
import { ConfirmationModal } from "../../ui/React/ConfirmationModal";
2021-12-14 00:44:52 +01:00
interface IProps {
reactivateTutorial: () => void;
}
export function TutorialRoot(props: IProps): React.ReactElement {
2021-12-17 02:53:44 +01:00
const [confirmResetOpen, setConfirmResetOpen] = useState(false);
2021-09-10 22:08:58 +02:00
return (
2021-09-11 18:24:09 +02:00
<>
2021-09-25 09:09:27 +02:00
<Typography variant="h4">Tutorial / Documentation</Typography>
2021-09-22 09:30:06 +02:00
<Box m={2}>
2021-12-17 02:53:44 +01:00
<Button onClick={() => setConfirmResetOpen(true)}>Soft reset and Restart tutorial</Button>
<ConfirmationModal
open={confirmResetOpen}
onClose={() => setConfirmResetOpen(false)}
onConfirm={props.reactivateTutorial}
confirmationText={"This will reset all your stats to 1 and money to 1k. Are you sure?"}
/>
2021-09-22 09:30:06 +02:00
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/guidesandtips/gettingstartedguideforbeginnerprogrammers.html"
>
<Typography>Getting Started</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/servers.html"
>
<Typography>Servers & Networking</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/hacking.html"
>
<Typography>Hacking</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/scripts.html"
>
<Typography>Scripts</Typography>
</Link>
<br />
<Link color="primary" target="_blank" href="https://bitburner.readthedocs.io/en/latest/netscript.html">
<Typography>Netscript Programming Language</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/world.html"
>
<Typography>Traveling</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/companies.html"
>
<Typography>Companies</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/infiltration.html"
>
<Typography>Infiltration</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/factions.html"
>
<Typography>Factions</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/basicgameplay/augmentations.html"
>
<Typography>Augmentations</Typography>
</Link>
<br />
<Link color="primary" target="_blank" href="https://bitburner.readthedocs.io/en/latest/shortcuts.html">
<Typography>Keyboard Shortcuts</Typography>
</Link>
2021-12-17 02:53:44 +01:00
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/netscript/netscriptlearntoprogram.html#netscript-1-0-vs-netscript-2-0"
>
<Typography>NS1 vs NS2 (or .script vs .js)</Typography>
2021-12-17 02:53:44 +01:00
</Link>
2021-12-21 18:00:12 +01:00
<br />
<Link
color="primary"
target="_blank"
href="https://bitburner.readthedocs.io/en/latest/netscript/netscriptfunctions.html"
>
<Typography>Simplified list of functions</Typography>
</Link>
<br />
<Link
color="primary"
target="_blank"
href="https://github.com/danielyxie/bitburner/blob/dev/markdown/bitburner.ns.md"
>
<Typography>Complete list of functions</Typography>
</Link>
2021-09-22 09:30:06 +02:00
</Box>
2021-09-11 18:24:09 +02:00
</>
2021-09-10 22:08:58 +02:00
);
}