mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Merge pull request #2250 from MartinFournier/feature/backdoored-loc-tooltip
Add tooltip on backdoored location name
This commit is contained in:
commit
8cfb355ca2
@ -29,6 +29,7 @@ import { GetServer } from "../../Server/AllServers";
|
|||||||
import { CorruptableText } from "../../ui/React/CorruptableText";
|
import { CorruptableText } from "../../ui/React/CorruptableText";
|
||||||
import { use } from "../../ui/Context";
|
import { use } from "../../ui/Context";
|
||||||
import { serverMetadata } from "../../Server/data/servers";
|
import { serverMetadata } from "../../Server/data/servers";
|
||||||
|
import { Tooltip } from "@mui/material";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
loc: Location;
|
loc: Location;
|
||||||
@ -92,8 +93,11 @@ export function GenericLocation({ loc }: IProps): React.ReactElement {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Button onClick={() => router.toCity()}>Return to World</Button>
|
<Button onClick={() => router.toCity()}>Return to World</Button>
|
||||||
<Typography variant="h4">
|
<Typography variant="h4" sx={{ mt: 1 }}>
|
||||||
{backdoorInstalled && !Settings.DisableTextEffects ? <CorruptableText content={loc.name} /> : loc.name}
|
{backdoorInstalled && !Settings.DisableTextEffects ? (
|
||||||
|
<Tooltip title={`Backdoor installed on ${loc.name}.`}>
|
||||||
|
<span><CorruptableText content={loc.name} /></span>
|
||||||
|
</Tooltip>) : loc.name}
|
||||||
</Typography>
|
</Typography>
|
||||||
{locContent}
|
{locContent}
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user