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')")
}
>