From bef3532c931f1a8132fe919e36ad4cb361a9fc2b Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Thu, 13 Aug 2026 03:57:18 +0300 Subject: [PATCH] feat: hide title image on workshop, lceonline and devtools --- src/components/views/WorkshopView.tsx | 14 ++--- src/pages/App.tsx | 82 +++++++++++++++++---------- 2 files changed, 58 insertions(+), 38 deletions(-) diff --git a/src/components/views/WorkshopView.tsx b/src/components/views/WorkshopView.tsx index 9360331..201968d 100644 --- a/src/components/views/WorkshopView.tsx +++ b/src/components/views/WorkshopView.tsx @@ -724,10 +724,6 @@ const WorkshopView = memo(function WorkshopView({ transition={{ duration: config.animationsEnabled ? 0.3 : 0 }} className="flex flex-col items-center w-full h-full max-h-full relative font-['Mojangles'] text-white select-none outline-none focus:outline-none" > -

- Workshop -

-
p.id === depId); - if (dep?.zips) targets.push({ id: dep.id, zips: Object.keys(dep.zips).length }); + if (dep?.zips) + targets.push({ id: dep.id, zips: Object.keys(dep.zips).length }); } - if (pkg.zips) targets.push({ id: pkg.id, zips: Object.keys(pkg.zips).length }); + if (pkg.zips) + targets.push({ id: pkg.id, zips: Object.keys(pkg.zips).length }); return targets; }, [dependencies, allPackages, pkg.zips, pkg.id]); @@ -2266,7 +2264,9 @@ function InstallModal({
{progressLabel || - (isPluginTab ? "Downloading plugin files" : "Downloading assets")} + (isPluginTab + ? "Downloading plugin files" + : "Downloading assets")} {Math.floor(isPluginTab ? progress : overallProgress)}% diff --git a/src/pages/App.tsx b/src/pages/App.tsx index c65a456..54bc8ae 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -290,6 +290,21 @@ export default function App() { const selectedVersionName = selectedEdition?.name ?? ""; const hasAnyInstall = game.installs.length > 0; const titleImage = selectedEdition?.titleImage ?? "/images/MenuTitle.png"; + const TITLE_HIDDEN_VIEWS = new Set([ + //neo: why an entire Set for that? yes. the answer is yes. + "workshop", + "lceonline", + "devtools", + "guides", + "pck-editor", + "arc-editor", + "loc-editor", + "grf-editor", + "col-editor", + "options-editor", + "model-editor", + "swf-editor", + ]); useEffect(() => { const handleContextMenu = (e: MouseEvent) => e.preventDefault(); document.addEventListener("contextmenu", handleContextMenu); @@ -492,12 +507,15 @@ export default function App() { imageRendering: "pixelated", }} onMouseEnter={(e) => - ((e.currentTarget as HTMLButtonElement).style.backgroundImage = + (( + e.currentTarget as HTMLButtonElement + ).style.backgroundImage = "url('/images/Button_Square_Highlighted.png')") } onMouseLeave={(e) => - ((e.currentTarget as HTMLButtonElement).style.backgroundImage = - "url('/images/Button_Square.png')") + (( + e.currentTarget as HTMLButtonElement + ).style.backgroundImage = "url('/images/Button_Square.png')") } >
- {activeView !== "credits" && ( - - )} - {activeView !== "credits" && ( - -
+ )} + {activeView !== "credits" && + !TITLE_HIDDEN_VIEWS.has(activeView) && ( + - {audio.splashIndex === -1 - ? `Welcome ${config.username}!` - : audio.splashes[audio.splashIndex]} -
-
- )} +
+ {audio.splashIndex === -1 + ? `Welcome ${config.username}!` + : audio.splashes[audio.splashIndex]} +
+ + )} {activeView === "main" && hasAnyInstall && titleImage === "/images/MenuTitle.png" && (