Skip to content

feat(webgl): slim browser start menu to name + Play#122

Merged
marceld23 merged 1 commit into
mainfrom
feat/webgl-simple-menu
Jun 29, 2026
Merged

feat(webgl): slim browser start menu to name + Play#122
marceld23 merged 1 commit into
mainfrom
feat/webgl-simple-menu

Conversation

@marceld23

Copy link
Copy Markdown
Owner

Summary

Simplifies the WebGL/browser start menu to a focused one-screen flow: a name field + a primary Play button (joins the preconfigured server), with Connect to a server… (manual fallback), Settings and Credits. Singleplayer / Host / Editors / Quit are hidden in the browser.

A name is required so players never join the public, kid-friendly realm anonymously. A curated ?auto_join=1&player_name=… link stays zero-click (unchanged).

All changes are behind #if UNITY_WEBGL && !UNITY_EDITOR — the native menu is byte-for-byte unchanged.

Changes

  • UiMainMenu.cs — WebGL button block guarded; native #else block verbatim.
  • data/locales/en.json + de.jsonui.menu.play, ui.menu.connect_manual, ui.webgl.need_name.
  • TODO.md — follow-up notes.

Verification

  • Locale JSON validated.
  • Native path unchanged (WebGL block does not compile in native/editor builds).
  • ⚠️ A local WebGL Unity build should confirm the slim menu before release (the WebGL-only block is not exercised by headless .NET CI).

Closes #120

🤖 Generated with Claude Code

In WebGL builds the start menu now shows a focused "enter your name and
play" screen: a name field, a primary Play button that joins the
preconfigured server, plus Connect-to-a-server (manual fallback), Settings
and Credits. Singleplayer/Host/Editors/Quit are hidden (no local server or
filesystem in the browser; quitting a tab is meaningless). A name is
required so players never join the public realm anonymously; a curated
?auto_join=1&player_name= link stays zero-click.

All changes are behind `#if UNITY_WEBGL && !UNITY_EDITOR`; the native menu
is byte-for-byte unchanged.

Closes #120

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marceld23 marceld23 merged commit 3fc24d5 into main Jun 29, 2026
3 checks passed
@marceld23 marceld23 deleted the feat/webgl-simple-menu branch June 29, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebGL: simplify the browser start menu (one-screen name + Play)

1 participant