mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BLADEBURNER: Show operation description in tooltip of completed BlackOps (#1941)
This commit is contained in:
@@ -2,7 +2,8 @@ import type { Bladeburner } from "../Bladeburner";
|
||||
import type { BlackOperation } from "../Actions/BlackOperation";
|
||||
|
||||
import React from "react";
|
||||
import { Paper, Typography } from "@mui/material";
|
||||
import { Paper, Typography, Tooltip } from "@mui/material";
|
||||
import { Info } from "@mui/icons-material";
|
||||
|
||||
import { Player } from "@player";
|
||||
import { formatNumberNoSuffix } from "../../ui/formatNumber";
|
||||
@@ -22,7 +23,11 @@ export function BlackOpElem({ bladeburner, action }: BlackOpElemProps): React.Re
|
||||
if (isCompleted) {
|
||||
return (
|
||||
<Paper sx={{ my: 1, p: 1 }}>
|
||||
<Typography>{action.name} (COMPLETED)</Typography>
|
||||
<Tooltip title={action.desc}>
|
||||
<Typography>
|
||||
{action.name} (COMPLETED) <Info sx={{ fontSize: "1.1em" }} />
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
</Paper>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export function SuccessChance({ bladeburner, action }: SuccessChanceProps): Reac
|
||||
<Tooltip title={action.successScaling ? <Typography>{action.successScaling}</Typography> : ""}>
|
||||
<Typography component="span" sx={{ marginRight: "15px" }}>
|
||||
Estimated success chance: {chance}
|
||||
{action.successScaling && <InfoIcon sx={{ fontSize: "1.1rem", marginLeft: "10px" }} />}
|
||||
{action.successScaling && <InfoIcon sx={{ fontSize: "1.1em", marginLeft: "10px" }} />}
|
||||
</Typography>
|
||||
</Tooltip>
|
||||
{action.isStealth ? <StealthIcon /> : <></>}
|
||||
|
||||
Reference in New Issue
Block a user