UI: 'Disable Text Effects' setting applies to "corrupted text" (#944)

This commit is contained in:
draughtnyan
2023-12-27 02:30:08 -06:00
committed by GitHub
parent e7b68676f5
commit ccf0aa4771
7 changed files with 25 additions and 12 deletions
+3 -5
View File
@@ -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>
) : (
+1 -1
View File
@@ -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>
</>
);