diff --git a/src/GameOptions/ui/CurrentOptionsPage.tsx b/src/GameOptions/ui/CurrentOptionsPage.tsx index 2f08ccbe5..cd00a1e2a 100644 --- a/src/GameOptions/ui/CurrentOptionsPage.tsx +++ b/src/GameOptions/ui/CurrentOptionsPage.tsx @@ -65,7 +65,7 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => { const pages = { [GameOptionsTabs.SYSTEM]: ( - + { game to use a lot of memory. } + marks /> { min={0} max={600} tooltip={<>The time (in seconds) between each autosave. Set to 0 to disable autosave.} + marks /> ), diff --git a/src/GameOptions/ui/GameOptionsPage.tsx b/src/GameOptions/ui/GameOptionsPage.tsx index a8b5e4afa..7d9766785 100644 --- a/src/GameOptions/ui/GameOptionsPage.tsx +++ b/src/GameOptions/ui/GameOptionsPage.tsx @@ -5,13 +5,14 @@ import React from "react"; interface IProps { children: React.ReactElement | (React.ReactElement | null)[]; title: string; + noList?: boolean; } export const GameOptionsPage = (props: IProps): React.ReactElement => { return ( {props.title} - {(props.children as any)?.length > 1 ? ( + {(props.children as any)?.length > 1 && !props.noList ? ( {(props.children as React.ReactElement[]) .filter((c) => c) diff --git a/src/GameOptions/ui/OptionsSlider.tsx b/src/GameOptions/ui/OptionsSlider.tsx index a97ba913a..5c0377d77 100644 --- a/src/GameOptions/ui/OptionsSlider.tsx +++ b/src/GameOptions/ui/OptionsSlider.tsx @@ -9,6 +9,7 @@ interface IProps { max: number; tooltip: React.ReactElement; label: string; + marks?: boolean; } export const OptionsSlider = (props: IProps): React.ReactElement => { @@ -30,6 +31,7 @@ export const OptionsSlider = (props: IProps): React.ReactElement => { width: "12px", }, }} + marks={props.marks} /> );