This commit is contained in:
neoapps-dev
2026-04-02 16:10:12 +03:00
parent 535735fcb2
commit 340f636b8e
14 changed files with 7776 additions and 1242 deletions
+8 -8
View File
@@ -207,13 +207,13 @@ const SettingsView = memo(function SettingsView() {
if (currentSubMenu === "main") {
items.push({
id: "audio_menu",
label: "Audio",
label: "Audio Settings",
type: "button",
onClick: () => { playClickSound(); setCurrentSubMenu("audio"); setFocusIndex(0); },
});
items.push({
id: "video_menu",
label: "User Interface",
label: "Video Settings",
type: "button",
onClick: () => { playClickSound(); setCurrentSubMenu("video"); setFocusIndex(0); },
});
@@ -225,23 +225,23 @@ const SettingsView = memo(function SettingsView() {
});
items.push({
id: "launcher_menu",
label: "Options",
label: "Launcher Settings",
type: "button",
onClick: () => { playClickSound(); setCurrentSubMenu("launcher"); setFocusIndex(0); },
});
} else if (currentSubMenu === "audio") {
items.push({
id: "music",
label: `Music: ${musicVolume ?? 50}%`,
label: `Music: ${musicVolume}%`,
type: "slider",
value: musicVolume ?? 50,
value: musicVolume,
onChange: setMusicVolume,
});
items.push({
id: "sfx",
label: `SFX: ${sfxVolume ?? 100}%`,
label: `SFX: ${sfxVolume}%`,
type: "slider",
value: sfxVolume ?? 100,
value: sfxVolume,
onChange: setSfxVolume,
});
items.push({
@@ -480,7 +480,7 @@ const SettingsView = memo(function SettingsView() {
className="flex flex-col items-center w-full max-w-2xl outline-none"
>
<h2 className="text-2xl text-white mc-text-shadow mt-2 mb-4 border-b-2 border-[#373737] pb-2 w-[40%] max-w-[200px] text-center tracking-widest uppercase opacity-80 font-bold whitespace-nowrap px-4">
{currentSubMenu === "main" ? "Settings" : currentSubMenu === "audio" ? "Audio" : currentSubMenu === "video" ? "User Interface" : currentSubMenu === "controls" ? "Controls" : "Options"}
{currentSubMenu === "main" ? "Settings" : currentSubMenu === "audio" ? "Audio Settings" : currentSubMenu === "video" ? "Video Settings" : currentSubMenu === "controls" ? "Controls" : "Launcher"}
</h2>
<div className="w-full max-w-[540px] space-y-2 mb-4 p-6 flex flex-col items-center overflow-y-auto max-h-[55vh]">