diff --git a/src/components/ui/GameSettingsMenu.tsx b/src/components/ui/GameSettingsMenu.tsx index 754bc70..089d9f5 100644 --- a/src/components/ui/GameSettingsMenu.tsx +++ b/src/components/ui/GameSettingsMenu.tsx @@ -3,9 +3,11 @@ import type { ReactNode } from "react"; import { Captions, Gauge, - LogOut, + Hand, + Laptop, Music2, RotateCcw, + Server, Volume2, X, } from "lucide-react"; @@ -14,25 +16,19 @@ import { GRAPHICS_PRESETS, type GraphicsPreset, } from "@/data/world/graphicsConfig"; +import { useDebugStore } from "@/hooks/debug/useDebugStore"; import { useGameStore } from "@/managers/stores/useGameStore"; import { useSettingsStore } from "@/managers/stores/useSettingsStore"; import { useWorldSettingsStore } from "@/managers/stores/useWorldSettingsStore"; +import type { HandTrackingSource } from "@/types/handTracking/handTracking"; import type { SubtitleLanguage } from "@/types/settings/settings"; -import { isDebugEnabled } from "@/utils/debug/isDebugEnabled"; +import { clearSiteVisited } from "@/utils/cookies/siteVisitCookie"; +import { Debug } from "@/utils/debug/Debug"; function formatPercent(value: number): string { return `${Math.round(value * 100)}%`; } -function clearCookies(): void { - document.cookie.split(";").forEach((cookie) => { - const cookieName = cookie.split("=")[0]?.trim(); - if (!cookieName) return; - - document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`; - }); -} - interface VolumeSliderProps { id: string; label: string; @@ -74,6 +70,26 @@ function formatChunkDistance(distance: number): string { return `${distance}m`; } +const HAND_TRACKING_OPTIONS = [ + { + description: "Calcul local", + icon: