Skip to content

Commit a79dd83

Browse files
committed
Rename Arcade navigation to Games and alphabetize Game Foundry Studio tools - PR_26152_001-gamefoundry-nav-tools-games-cleanup
1 parent a4cf408 commit a79dd83

25 files changed

Lines changed: 200 additions & 101 deletions

GameFoundryStudio/assets/js/gamefoundry-partials.js

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,37 @@
22
const routeMap = {
33
home: "index.html",
44
tools: "tools/index.html",
5+
"ai-assistant": "tools/ai-assistant.html",
6+
"animation-studio": "tools/animation-studio.html",
7+
"asset-studio": "tools/asset-studio.html",
58
builder: "tools/builder.html",
9+
"code-studio": "tools/code-studio.html",
610
creator: "tools/creator.html",
11+
"game-builder": "tools/game-builder.html",
12+
"game-design-studio": "tools/game-design-studio.html",
13+
"input-studio": "tools/input-studio.html",
14+
"midi-studio": "tools/midi-studio.html",
15+
"object-vector-studio": "tools/object-vector-studio.html",
16+
"palette-manager": "tools/palette-manager.html",
17+
"particle-studio": "tools/particle-studio.html",
718
publisher: "tools/publisher.html",
19+
"sound-studio": "tools/sound-studio.html",
20+
"storage-inspector": "tools/storage-inspector.html",
21+
"world-vector-studio": "tools/world-vector-studio.html",
822
"building-creation": "tools/groups/building-creation.html",
923
"technology-system": "tools/groups/technology-system.html",
1024
"assets-content": "tools/groups/assets-content.html",
1125
"media-community": "tools/groups/media-community.html",
1226
"design-animation": "tools/groups/design-animation.html",
1327
"configuration-admin": "tools/groups/configuration-admin.html",
28+
games: "arcade/index.html",
1429
arcade: "arcade/index.html",
30+
"game-action": "arcade/index.html#action",
31+
"game-adventure": "arcade/index.html#adventure",
32+
"game-puzzle": "arcade/index.html#puzzle",
33+
"game-racing": "arcade/index.html#racing",
34+
"game-retro": "arcade/index.html#retro",
35+
"game-strategy": "arcade/index.html#strategy",
1536
marketplace: "marketplace/index.html",
1637
learn: "learn/index.html",
1738
community: "community/index.html",
@@ -56,9 +77,14 @@
5677
const pagePath = currentPagePath() || "index.html";
5778
root.querySelectorAll("[data-nav-link]").forEach(function (link) {
5879
const route = routeMap[link.dataset.route] || "";
59-
const isToolChild = pagePath.indexOf("tools/") === 0 && link.dataset.route === "tools";
80+
const isAccountUtilityPage = pagePath.indexOf("tools/groups/") === 0
81+
|| pagePath === "tools/builder.html"
82+
|| pagePath === "tools/creator.html";
83+
const isAccountUtility = isAccountUtilityPage && link.dataset.route === "account";
84+
const isToolChild = pagePath.indexOf("tools/") === 0 && !isAccountUtilityPage && link.dataset.route === "tools";
85+
const isGameChild = pagePath.indexOf("arcade/") === 0 && link.dataset.route === "games";
6086
const isAccountChild = pagePath.indexOf("account/") === 0 && link.dataset.route === "account";
61-
if (route === pagePath || isToolChild || isAccountChild) {
87+
if (route === pagePath || isToolChild || isGameChild || isAccountChild || isAccountUtility) {
6288
link.classList.add("active");
6389
}
6490
});

GameFoundryStudio/assets/partials/header-nav.html

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,55 @@
55
<nav class="nav-links" aria-label="Main navigation">
66
<div class="nav-item"><a data-nav-link data-route="tools" href="tools/index.html">Tools ▾</a>
77
<div class="sub-menu">
8-
<a data-nav-link data-route="builder" href="tools/builder.html">Tool Builder</a>
9-
<a data-nav-link data-route="creator" href="tools/creator.html">Tool Creator</a>
10-
<a data-nav-link data-route="publisher" href="tools/publisher.html">Tool Publisher</a>
11-
<a data-nav-link data-route="building-creation" href="tools/groups/building-creation.html">Building /
12-
Creation</a>
13-
<a data-nav-link data-route="technology-system" href="tools/groups/technology-system.html">Technology /
14-
System</a>
15-
<a data-nav-link data-route="assets-content" href="tools/groups/assets-content.html">Assets / Content</a>
16-
<a data-nav-link data-route="media-community" href="tools/groups/media-community.html">Media / Community</a>
17-
<a data-nav-link data-route="design-animation" href="tools/groups/design-animation.html">Design /
18-
Animation</a>
19-
<a data-nav-link data-route="configuration-admin" href="tools/groups/configuration-admin.html">Configuration /
20-
Admin</a>
8+
<a data-nav-link data-route="ai-assistant" href="tools/ai-assistant.html">AI Assistant</a>
9+
<a data-nav-link data-route="animation-studio" href="tools/animation-studio.html">Animation Studio</a>
10+
<a data-nav-link data-route="asset-studio" href="tools/asset-studio.html">Asset Studio</a>
11+
<a data-nav-link data-route="code-studio" href="tools/code-studio.html">Code Studio</a>
12+
<a data-nav-link data-route="game-builder" href="tools/game-builder.html">Game Builder</a>
13+
<a data-nav-link data-route="game-design-studio" href="tools/game-design-studio.html">Game Design Studio</a>
14+
<a data-nav-link data-route="input-studio" href="tools/input-studio.html">Input Studio</a>
15+
<a data-nav-link data-route="midi-studio" href="tools/midi-studio.html">MIDI Studio</a>
16+
<a data-nav-link data-route="object-vector-studio" href="tools/object-vector-studio.html">Object Vector Studio</a>
17+
<a data-nav-link data-route="palette-manager" href="tools/palette-manager.html">Palette Manager</a>
18+
<a data-nav-link data-route="particle-studio" href="tools/particle-studio.html">Particle Studio</a>
19+
<a data-nav-link data-route="publisher" href="tools/publisher.html">Publish Studio</a>
20+
<a data-nav-link data-route="sound-studio" href="tools/sound-studio.html">Sound Studio</a>
21+
<a data-nav-link data-route="storage-inspector" href="tools/storage-inspector.html">Storage Inspector</a>
22+
<a data-nav-link data-route="world-vector-studio" href="tools/world-vector-studio.html">World Vector Studio</a>
23+
</div>
24+
</div>
25+
<div class="nav-item"><a data-nav-link data-route="games" href="arcade/index.html">Games ▾</a>
26+
<div class="sub-menu">
27+
<a data-nav-link data-route="arcade" href="arcade/index.html">Arcade</a>
28+
<a data-nav-link data-route="game-action" href="arcade/index.html#action">Action</a>
29+
<a data-nav-link data-route="game-adventure" href="arcade/index.html#adventure">Adventure</a>
30+
<a data-nav-link data-route="game-puzzle" href="arcade/index.html#puzzle">Puzzle</a>
31+
<a data-nav-link data-route="game-racing" href="arcade/index.html#racing">Racing</a>
32+
<a data-nav-link data-route="game-retro" href="arcade/index.html#retro">Retro</a>
33+
<a data-nav-link data-route="game-strategy" href="arcade/index.html#strategy">Strategy</a>
2134
</div>
2235
</div>
23-
<a data-nav-link data-route="arcade" href="arcade/index.html">Arcade</a>
2436
<a data-nav-link data-route="marketplace" href="marketplace/index.html">Marketplace</a>
2537
<a data-nav-link data-route="learn" href="learn/index.html">Learn</a>
2638
<a data-nav-link data-route="community" href="community/index.html">Community</a>
2739
<a data-nav-link data-route="docs" href="docs/index.html">Docs</a>
2840
<div class="nav-item"><a data-nav-link data-route="account" href="account/index.html">Account ▾</a>
2941
<div class="sub-menu">
42+
<a data-nav-link data-route="account" href="account/index.html">Account Home</a>
3043
<a data-nav-link data-route="branding" href="account/branding.html">Branding</a>
3144
<a data-nav-link data-route="controls" href="account/controls.html">Controls</a>
45+
<a data-nav-link data-route="assets-content" href="tools/groups/assets-content.html">Assets / Content</a>
46+
<a data-nav-link data-route="building-creation" href="tools/groups/building-creation.html">Building / Creation</a>
47+
<a data-nav-link data-route="configuration-admin" href="tools/groups/configuration-admin.html">Settings and Admin</a>
48+
<a data-nav-link data-route="design-animation" href="tools/groups/design-animation.html">Design / Animation</a>
49+
<a data-nav-link data-route="media-community" href="tools/groups/media-community.html">Media / Community</a>
50+
<a data-nav-link data-route="technology-system" href="tools/groups/technology-system.html">Technology / System</a>
51+
<a data-nav-link data-route="builder" href="tools/builder.html">Tool Builder</a>
52+
<a data-nav-link data-route="creator" href="tools/creator.html">Tool Creator</a>
3253
</div>
3354
</div>
3455
</nav>
35-
<div class="nav-actions"><a class="btn" data-route="arcade" href="arcade/index.html">Play Games</a><a
56+
<div class="nav-actions"><a class="btn" data-route="games" href="arcade/index.html">Play Games</a><a
3657
class="btn primary" data-route="tools" href="tools/index.html">Start Building</a></div>
3758
</div>
3859
</header>

0 commit comments

Comments
 (0)