mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-06 07:37:56 +02:00
UI: 'Disable Text Effects' setting applies to "corrupted text" (#944)
This commit is contained in:
@@ -21,8 +21,6 @@ import { CasinoLocation } from "./CasinoLocation";
|
||||
import { Location } from "../Location";
|
||||
import { LocationType } from "@enums";
|
||||
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
|
||||
import { isBackdoorInstalled } from "../../Server/ServerHelpers";
|
||||
import { GetServer } from "../../Server/AllServers";
|
||||
|
||||
@@ -97,10 +95,10 @@ export function GenericLocation({ loc }: IProps): React.ReactElement {
|
||||
<>
|
||||
<Button onClick={() => Router.toPage(Page.City)}>Return to World</Button>
|
||||
<Typography variant="h4" sx={{ mt: 1 }}>
|
||||
{backdoorInstalled && !Settings.DisableTextEffects ? (
|
||||
<Tooltip title={`Backdoor installed on ${loc.name}.`}>
|
||||
{backdoorInstalled ? (
|
||||
<Tooltip title={`Backdoor installed on ${serverMeta.hostname}.`}>
|
||||
<span>
|
||||
<CorruptableText content={loc.name} />
|
||||
<CorruptableText content={loc.name} spoiler={false} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
) : (
|
||||
|
||||
@@ -303,7 +303,7 @@ export function SpecialLocation(props: SpecialLocationProps): React.ReactElement
|
||||
return (
|
||||
<>
|
||||
<Typography>
|
||||
<CorruptableText content={"An eerie aura surrounds this area. You feel you should leave."} />
|
||||
<CorruptableText content={"An eerie aura surrounds this area. You feel you should leave."} spoiler={false} />
|
||||
</Typography>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user