mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
DEVMENU: Small change in augmentation tool (#1557)
This commit is contained in:
parent
1fdb8bd352
commit
59bb58535e
@ -1,17 +1,21 @@
|
||||
import { Player } from "@player";
|
||||
import React, { useState } from "react";
|
||||
import { Clear, ExpandMore, Reply, ReplyAll } from "@mui/icons-material";
|
||||
import { Clear, ExpandMore } from "@mui/icons-material";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionDetails,
|
||||
AccordionSummary,
|
||||
Box,
|
||||
Button,
|
||||
IconButton,
|
||||
MenuItem,
|
||||
Select,
|
||||
SelectChangeEvent,
|
||||
Tooltip,
|
||||
Typography,
|
||||
} from "@mui/material";
|
||||
import ReplyAllIcon from "@mui/icons-material/ReplyAll";
|
||||
import ReplyIcon from "@mui/icons-material/Reply";
|
||||
import { AugmentationName } from "@enums";
|
||||
|
||||
export function AugmentationsDev(): React.ReactElement {
|
||||
@ -51,25 +55,21 @@ export function AugmentationsDev(): React.ReactElement {
|
||||
<Typography>Augmentations</Typography>
|
||||
</AccordionSummary>
|
||||
<AccordionDetails>
|
||||
<Box display="flex" marginBottom="8px">
|
||||
<Tooltip title="Queue all augmentations" sx={{ marginRight: "8px" }}>
|
||||
<Button onClick={queueAllAugs}>
|
||||
<ReplyAllIcon />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Select
|
||||
onChange={setAugmentationDropdown}
|
||||
value={augmentation}
|
||||
startAdornment={
|
||||
<>
|
||||
<IconButton onClick={queueAllAugs} size="large">
|
||||
<ReplyAll />
|
||||
<Tooltip title="Queue augmentation">
|
||||
<IconButton onClick={queueAug}>
|
||||
<ReplyIcon />
|
||||
</IconButton>
|
||||
<IconButton onClick={queueAug} size="large">
|
||||
<Reply />
|
||||
</IconButton>
|
||||
</>
|
||||
}
|
||||
endAdornment={
|
||||
<>
|
||||
<IconButton onClick={clearAugs} size="large">
|
||||
<Clear />
|
||||
</IconButton>
|
||||
</>
|
||||
</Tooltip>
|
||||
}
|
||||
>
|
||||
{Object.values(AugmentationName).map((aug) => (
|
||||
@ -78,9 +78,13 @@ export function AugmentationsDev(): React.ReactElement {
|
||||
</MenuItem>
|
||||
))}
|
||||
</Select>
|
||||
<Button sx={{ display: "block" }} onClick={clearQueuedAugs}>
|
||||
Clear Queued Augmentations
|
||||
<Tooltip title="Clear augmentations" sx={{ marginLeft: "8px" }}>
|
||||
<Button onClick={clearAugs}>
|
||||
<Clear />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
<Button onClick={clearQueuedAugs}>Clear queued augmentations</Button>
|
||||
</AccordionDetails>
|
||||
</Accordion>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user