diff --git a/src/components/ui/GameSettingsMenu.tsx b/src/components/ui/GameSettingsMenu.tsx
index e737bb6..8151d39 100644
--- a/src/components/ui/GameSettingsMenu.tsx
+++ b/src/components/ui/GameSettingsMenu.tsx
@@ -1,10 +1,12 @@
import { useEffect } from "react";
-import { X } from "lucide-react";
+import { RotateCcw, X } from "lucide-react";
+import { useGameStore } from "@/managers/stores/useGameStore";
import { useSettingsStore } from "@/managers/stores/useSettingsStore";
import type {
RepairRuntime,
SubtitleLanguage,
} from "@/managers/stores/useSettingsStore";
+import { isDebugEnabled } from "@/utils/debug/isDebugEnabled";
function formatPercent(value: number): string {
return `${Math.round(value * 100)}%`;
@@ -52,6 +54,7 @@ function VolumeSlider({
}
export function GameSettingsMenu(): React.JSX.Element | null {
+ const resetGame = useGameStore((state) => state.resetGame);
const {
isSettingsMenuOpen,
musicVolume,
@@ -93,6 +96,13 @@ export function GameSettingsMenu(): React.JSX.Element | null {
window.location.assign("/");
};
+ const handleRestart = (): void => {
+ resetGame();
+ window.location.reload();
+ };
+
+ const showDebugRestart = isDebugEnabled();
+
return (
@@ -190,6 +200,17 @@ export function GameSettingsMenu(): React.JSX.Element | null {
+ {showDebugRestart ? (
+
+ ) : null}
+