diff --git a/src/Components/Dialogs/SettingsDialog.tsx b/src/Components/Dialogs/SettingsDialog.tsx index 0c369eb..35c1230 100644 --- a/src/Components/Dialogs/SettingsDialog.tsx +++ b/src/Components/Dialogs/SettingsDialog.tsx @@ -242,6 +242,23 @@ export const SettingsDialog = ({ + + + + { + setSettings({ + ...settings, + showMatchScore: !settings.showMatchScore, + }); + }} + /> + + + Shows a score badge on each player's card in 1v1 games to track wins across multiple games. + +
+ + {onForfeit && ( + + )} diff --git a/src/Components/Players/Players.tsx b/src/Components/Players/Players.tsx index 302c759..cf4c0e4 100644 --- a/src/Components/Players/Players.tsx +++ b/src/Components/Players/Players.tsx @@ -48,7 +48,11 @@ export const Players = ({ gridLayout }: { gridLayout: GridLayout }) => { opponents={players.filter( (opponent) => opponent.index !== player.index )} - matchScore={players.length === 2 ? gameScore[player.index] : undefined} + matchScore={ + players.length === 2 && settings.showMatchScore + ? gameScore[player.index] + : undefined + } /> {settings.preStartMode === PreStartMode.RandomKing && diff --git a/src/Types/Settings.ts b/src/Types/Settings.ts index 63ffb93..a5486d2 100644 --- a/src/Types/Settings.ts +++ b/src/Types/Settings.ts @@ -27,6 +27,7 @@ export type Settings = { preStartMode: PreStartMode; showAnimations: boolean; useMonarch: boolean; + showMatchScore: boolean; }; export type InitialGameSettings = { @@ -61,6 +62,7 @@ export const settingsSchema = z.object({ preStartMode: z.nativeEnum(PreStartMode), showAnimations: z.boolean(), useMonarch: z.boolean().default(false), + showMatchScore: z.boolean().default(true), }); export const defaultSettings: Settings = { @@ -71,4 +73,5 @@ export const defaultSettings: Settings = { preStartMode: PreStartMode.None, showAnimations: true, useMonarch: false, + showMatchScore: true, };