mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
More work on terminal.
This commit is contained in:
@@ -12,6 +12,7 @@ import MenuItem from "@material-ui/core/MenuItem";
|
||||
import IconButton from "@material-ui/core/IconButton";
|
||||
import ReplyAllIcon from "@material-ui/icons/ReplyAll";
|
||||
import ReplyIcon from "@material-ui/icons/Reply";
|
||||
import ClearIcon from "@material-ui/icons/Clear";
|
||||
|
||||
interface IProps {
|
||||
player: IPlayer;
|
||||
@@ -33,6 +34,11 @@ export function Augmentations(props: IProps): React.ReactElement {
|
||||
props.player.queueAugmentation(augName);
|
||||
}
|
||||
}
|
||||
|
||||
function clearAugs(): void {
|
||||
props.player.augmentations = [];
|
||||
}
|
||||
|
||||
return (
|
||||
<Accordion>
|
||||
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
|
||||
@@ -61,6 +67,13 @@ export function Augmentations(props: IProps): React.ReactElement {
|
||||
</IconButton>
|
||||
</>
|
||||
}
|
||||
endAdornment={
|
||||
<>
|
||||
<IconButton color="primary" onClick={clearAugs}>
|
||||
<ClearIcon />
|
||||
</IconButton>
|
||||
</>
|
||||
}
|
||||
>
|
||||
{Object.values(AugmentationNames).map((aug) => (
|
||||
<MenuItem key={aug} value={aug}>
|
||||
|
||||
Reference in New Issue
Block a user