Skip to content

Commit

Permalink
UI: Disable font ligatures by default (bitburner-official#1729)
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg authored Oct 28, 2024
1 parent 0bf378a commit a12c48e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/GameOptions/ui/InterfacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const InterfacePage = (): React.ReactElement => {
checked={Settings.DisableASCIIArt}
onChange={(newValue) => (Settings.DisableASCIIArt = newValue)}
text="Disable ascii art"
tooltip={<>If this is set all ASCII art will be disabled.</>}
tooltip={<>If this is set, all ASCII arts will be disabled.</>}
/>
<OptionSwitch
checked={Settings.DisableTextEffects}
Expand All @@ -35,13 +35,13 @@ export const InterfacePage = (): React.ReactElement => {
checked={Settings.DisableOverviewProgressBars}
onChange={(newValue) => (Settings.DisableOverviewProgressBars = newValue)}
text="Disable Overview Progress Bars"
tooltip={<>If this is set, the progress bars in the character overview will be hidden.</>}
tooltip={<>If this is set, progress bars in the character overview will be hidden.</>}
/>
<OptionSwitch
checked={Settings.ShowMiddleNullTimeUnit}
onChange={(newValue) => (Settings.ShowMiddleNullTimeUnit = newValue)}
text="Show all intermediary times unit, even when null."
tooltip={<>ex : 1 hours 13 seconds becomes 1 hours 0 minutes 13 seconds.</>}
text="Show all intermediary time units, even when null."
tooltip={<>Example: 1 hour 13 seconds becomes 1 hour 0 minutes 13 seconds.</>}
/>
<Tooltip
title={
Expand Down
2 changes: 1 addition & 1 deletion src/Settings/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const Settings = {
MonacoFontFamily: "JetBrainsMono",
/** Text size for script editor. */
MonacoFontSize: 20,
/** Whether to use font ligatures */
/** Whether to use font ligatures in the script editor */
MonacoFontLigatures: false,
/** Whether to use Vim mod by default in the script editor */
MonacoDefaultToVim: false,
Expand Down
2 changes: 2 additions & 0 deletions src/ui/LoadingScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export function LoadingScreen(): React.ReactElement {
document.title = `Bitburner ${version}`;
}

document.body.style.fontVariantLigatures = "none";

useEffect(() => {
const id = setTimeout(() => {
if (!loaded) setShow(true);
Expand Down

0 comments on commit a12c48e

Please sign in to comment.