[PR #1271] [MERGED] One menu style, vanilla's: Horizon's settings join vanilla's Options #3472

Closed
opened 2026-11-03 04:09:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1271
Author: @ludovic111
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @ludovic111

Base: main ← Head: feat/vanilla-menus


📝 Commits (6)

  • 042adc6 One menu style, vanilla's: Horizon's settings join vanilla's Options
  • 954bb6a Play with Friends: the pause icon takes controller focus, help moves to a Troubleshooting button
  • fc8643b Docs: settings screenshots show the vanilla Video Settings and Advanced Graphics screens
  • 72b749c Merge origin/main into feat/vanilla-menus
  • 8c2f683 Merge origin/main into feat/vanilla-menus
  • bf274d9 Merge origin/main into feat/vanilla-menus

📊 Changes

73 files changed (+797 additions, -5181 deletions)

View changed files

📝 .github/workflows/launcher.yml (+0 -3)
📝 README.md (+3 -3)
➕ crates/horizon-client/src/friends_screen.rs (+303 -0)
➖ crates/horizon-client/src/front.rs (+0 -1572)
📝 crates/horizon-client/src/game.rs (+46 -125)
📝 crates/horizon-client/src/game/agent.rs (+1 -0)
➖ crates/horizon-client/src/game/backdrop.rs (+0 -303)
📝 crates/horizon-client/src/game/control.rs (+3 -0)
📝 crates/horizon-client/src/game/friends.rs (+43 -4)
📝 crates/horizon-client/src/game/pad_menu.rs (+7 -39)
📝 crates/horizon-client/src/game/screens.rs (+52 -68)
📝 crates/horizon-client/src/game/startup_menu.rs (+18 -60)
📝 crates/horizon-client/src/gfx.rs (+0 -22)
📝 crates/horizon-client/src/graphics.rs (+3 -7)
📝 crates/horizon-client/src/graphics_ui.rs (+2 -2)
📝 crates/horizon-client/src/hud.rs (+2 -2)
📝 crates/horizon-client/src/lib.rs (+1 -3)
📝 crates/horizon-client/src/multiplayer.rs (+34 -10)
➖ crates/horizon-client/src/options_horizon.rs (+0 -1259)
📝 crates/horizon-client/src/options_ui.rs (+128 -113)

...and 53 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

There is now one menu style, vanilla's. Horizon's own in-game menu style is gone. Horizon's own settings are added to vanilla's Options the way Sodium, Iris and modpacks add theirs, on screens built from vanilla's widgets.

  • Removed:
    • MenuStyle::Horizon and everything only it used: options_horizon.rs, front.rs (its title/worlds/multiplayer pages), game/backdrop.rs (the live title world), post.rs/post.wgsl (its colour grade), and most of ui_theme.rs (now only the on-screen keyboard's drawing, about 550 lines instead of 1500).
    • The Options grid's "Horizon Menus" switch and the Video page's "Menu Style" row.
    • The launcher's "Game menus" setting, the menu-style CLI command, the menu_style MCP tool and their smoke lines in launcher.yml.
  • Old files still load:
    • menuStyle: in horizon.txt and level: in horizon-graphics.txt are ignored. A test parses level:advanced.
    • The launcher wrote its choice as a menuStyle: line in the game's horizon.txt; the game now skips that line, and the launcher's own settings file never held it.
  • Added: Options → Horizon Settings...
    • It sits in vanilla's Telemetry/Credits slots, beside Mods....
    • It is a vanilla options list with Graphics..., Advanced Graphics..., Shader Packs..., Controller Settings..., Extras... and Mods..., each with a tooltip.
    • Back/Escape returns to the screen it came from.
    • An Extras sub-setting is greyed out while its parent switch is off.
  • Play with Friends (new vanilla-style screen, friends_screen.rs)
    • Sharing a world used to live only in the Horizon pause menu. It now opens from the Friends icon vanilla's PauseScreen already has (CommonButtons.friends, between Feedback and Player Reporting).
    • The screen has a title, centred text and vanilla buttons: Start Sharing, then Copy Code and Stop Sharing, with Troubleshooting... beside Done when friends on the internet can't reach the host.
    • The icon shows the "Play with Friends" tooltip and takes controller focus.
  • Join a Friend
    • It used to be reachable only from Horizon's multiplayer page. It now opens from the title screen's Friends icon (vanilla's, previously inactive).
    • Direct Connection also accepts a full invite code. Anything that isn't a valid code is still treated as a server address.
  • Docs and screenshots:
    • extras, graphics, controllers, play-with-friends, design-system, mods, shader-packs, native-client, agent-control, the README and the website docs (settings, multiplayer, index, install, mods) now describe the vanilla screens.
    • The website's screenshot tabs drop the four Horizon-menu captures (menu-title/worlds/options/pause).
    • settings-simple/advanced (and the website's settings webp) are new vanilla-style captures.
  • Diff: 73 files, +783 / −5170.

Why

Ludovic, 2026-10-22: for 0.2.0, drop the Horizon in-game menu entirely. Keep the base Java menus and add Horizon's settings the way modpacks do, in Minecraft's style, without a second UI.

Every Horizon setting and where it lives now

Setting(s) Before (Horizon style) Now
Graphics: preset, LOD distance Options → Video (Simple) Video Settings → Horizon Graphics...; Options → Horizon Settings → Graphics...
Advanced graphics: cave/leaf/entity culling, chunk updates, upload budget, sky, fog, weather, animated textures, present mode, frame pacing, worker threads, overlay, resolution scale, FXAA, battery mode, graphics API (Windows) Options → Video (Advanced) Video Settings → Advanced Graphics...; Horizon Settings → Advanced Graphics...
Shader packs Options → Video → Shader packs Video Settings → Shader Packs...; Horizon Settings → Shader Packs...
Controller: enabled, vibration, adaptive triggers, lightbar, look sensitivity, sneak toggle, invert X/Y, deadzones, glyphs, menu navigation, on-screen keyboard, controller binds Options → Controls → Controller Controls → Controller Settings... (unchanged); Horizon Settings → Controller Settings...
Extras: fullbright, dynamic lights, zoom (+key, start, smooth, slower turning), minimap (+subs), FPS counter (+subs), keystrokes (+subs), mouse tweaks (+wheel), inventory sort (+key), auto-reconnect Options → Horizon Extras Horizon Settings → Extras... (sub-settings greyed while their switch is off)
Mods Options → Mods Options → Mods... (unchanged); Horizon Settings → Mods...
Share this world (invite code, copy, stop, who's here) Horizon pause menu → Invite friends Pause → Friends icon → Play with Friends
Join by invite code, relay (friendsRelay) Horizon multiplayer → Join a Friend Title → Friends icon → Join a Friend; also Multiplayer → Direct Connection (paste the code)
Open to LAN Pause → World Options unchanged
Simple / Advanced level Video page switch removed: they are two screens now (level: ignored)
Menu style Options + launcher Settings removed (menuStyle: ignored; launcher row, CLI and MCP removed)
Update channel, server thread launcher only unchanged (the game never showed them)

Nothing that was reachable before has become unreachable. The vanilla-style pages (Graphics, Advanced Graphics, Shader Packs, Controller, Extras, Mods) already existed for the Classic style. This PR hangs them under one Horizon Settings screen and moves the two Horizon-only screens (sharing and joining) behind vanilla's own Friends buttons.

Controller navigation (pad_menu.rs), checked with the virtual pad

  • Options → Horizon Settings → Graphics and back: down ×4, left, A on Horizon Settings..., A on Graphics..., then B, B returns through Horizon Settings to Options.
  • Pause → Friends: from Statistics, down focuses the Friends icon (215,116); A opens Play with Friends, and A starts sharing.
  • Focus outline: vanilla's white outline is drawn on every page (the Horizon focus ring is gone).

Screenshots (Mac mini, game's own --offscreen capture, 1280×720, scratch home)

Options Horizon Settings
Video Settings Pause (Friends icon active)
Play with Friends Sharing (code and LAN address blacked out)
Graphics Advanced Graphics
Extras Controller Settings (pad focus)
Title (Friends icon now active) Join a Friend

The title's plain grey background (no panorama) is the same on main in offscreen captures (checked with a main-based build). It is not from this PR and is noted in LATER.

How tested (Mac mini; rerun on the merged head bf274d92, main 07e71797)

cargo fmt --all -- --check                                                         exit 0
cargo clippy --workspace --all-targets -- -D warnings                              exit 0
cargo clippy -p horizon-client --all-targets --no-default-features -- -D warnings  exit 0
cargo test -p horizon-client                                                       exit 0 (1129 passed, 0 failed)
cargo test -p horizon-theme                                                        exit 0
launcher: cargo fmt --check                                                        exit 0
launcher: cargo clippy --all-targets --features gpui/runtime_shaders -D warnings   exit 0
launcher: cargo test --features gpui/runtime_shaders                               exit 0 (111 passed)
tools/parity.py --changed origin/main                                              102 passed, 0 failed

New tests:

  • horizon_settings_hang_off_options_and_reach_every_horizon_page
  • extras_from_horizon_settings_edit_shared_settings_and_return
  • friends_screen share_then_copy_and_stop (also asserts the text stays above the footer with a real-length code and status) and a_server_offers_no_sharing
  • direct_connection_joins_a_pasted_invite_and_keeps_host_names
  • Graphics::parse("level:advanced") is ignored

Needs Ludovic

  • Conflicts with open PRs:
    • #1260 (Shader Packs per-pack options) edits options_horizon.rs, which this PR deletes. Its options page needs porting to the vanilla Shader Packs page in options_ui.rs when it rebases.
    • #1259 (website Blocks redesign) touches the same website files (index.html screenshot tabs, LEGAL.md, assets.mjs) and docs/design-system.md. Expect doc-level conflicts.
  • Play with Friends works on both paths since #1285 (merged in): the Friends icon is active in single player on the render thread and on --server-thread, and inactive only on another server. tools/test_friends.py --server-thread passes on this branch.
  • The leftovers are in FEATURES.md LATER 4zb.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/1271 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/vanilla-menus` --- ### 📝 Commits (6) - [`042adc6`](https://github.com/horizon-rust/horizon/commit/042adc674ae3d3389ac41e2dc72f7990261916c8) One menu style, vanilla's: Horizon's settings join vanilla's Options - [`954bb6a`](https://github.com/horizon-rust/horizon/commit/954bb6a1fadca982bb3d9d636dfb5bc9a44a49a2) Play with Friends: the pause icon takes controller focus, help moves to a Troubleshooting button - [`fc8643b`](https://github.com/horizon-rust/horizon/commit/fc8643b3801ff540a1d25c9b1642566594f2be2e) Docs: settings screenshots show the vanilla Video Settings and Advanced Graphics screens - [`72b749c`](https://github.com/horizon-rust/horizon/commit/72b749cdb0419732688d78663480c797c12c6f4f) Merge origin/main into feat/vanilla-menus - [`8c2f683`](https://github.com/horizon-rust/horizon/commit/8c2f683e0adfa5cc5a6156cf96d17da4d2be904a) Merge origin/main into feat/vanilla-menus - [`bf274d9`](https://github.com/horizon-rust/horizon/commit/bf274d9254e346767c6161c8fd48c8aff2893790) Merge origin/main into feat/vanilla-menus ### 📊 Changes **73 files changed** (+797 additions, -5181 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/launcher.yml` (+0 -3) 📝 `README.md` (+3 -3) ➕ `crates/horizon-client/src/friends_screen.rs` (+303 -0) ➖ `crates/horizon-client/src/front.rs` (+0 -1572) 📝 `crates/horizon-client/src/game.rs` (+46 -125) 📝 `crates/horizon-client/src/game/agent.rs` (+1 -0) ➖ `crates/horizon-client/src/game/backdrop.rs` (+0 -303) 📝 `crates/horizon-client/src/game/control.rs` (+3 -0) 📝 `crates/horizon-client/src/game/friends.rs` (+43 -4) 📝 `crates/horizon-client/src/game/pad_menu.rs` (+7 -39) 📝 `crates/horizon-client/src/game/screens.rs` (+52 -68) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+18 -60) 📝 `crates/horizon-client/src/gfx.rs` (+0 -22) 📝 `crates/horizon-client/src/graphics.rs` (+3 -7) 📝 `crates/horizon-client/src/graphics_ui.rs` (+2 -2) 📝 `crates/horizon-client/src/hud.rs` (+2 -2) 📝 `crates/horizon-client/src/lib.rs` (+1 -3) 📝 `crates/horizon-client/src/multiplayer.rs` (+34 -10) ➖ `crates/horizon-client/src/options_horizon.rs` (+0 -1259) 📝 `crates/horizon-client/src/options_ui.rs` (+128 -113) _...and 53 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What There is now one menu style, vanilla's. Horizon's own in-game menu style is gone. Horizon's own settings are added to vanilla's Options the way Sodium, Iris and modpacks add theirs, on screens built from vanilla's widgets. - **Removed:** - `MenuStyle::Horizon` and everything only it used: `options_horizon.rs`, `front.rs` (its title/worlds/multiplayer pages), `game/backdrop.rs` (the live title world), `post.rs`/`post.wgsl` (its colour grade), and most of `ui_theme.rs` (now only the on-screen keyboard's drawing, about 550 lines instead of 1500). - The Options grid's "Horizon Menus" switch and the Video page's "Menu Style" row. - The launcher's "Game menus" setting, the `menu-style` CLI command, the `menu_style` MCP tool and their smoke lines in launcher.yml. - **Old files still load:** - `menuStyle:` in horizon.txt and `level:` in horizon-graphics.txt are ignored. A test parses `level:advanced`. - The launcher wrote its choice as a `menuStyle:` line in the game's `horizon.txt`; the game now skips that line, and the launcher's own settings file never held it. - **Added: Options → Horizon Settings...** - It sits in vanilla's Telemetry/Credits slots, beside **Mods...**. - It is a vanilla options list with Graphics..., Advanced Graphics..., Shader Packs..., Controller Settings..., Extras... and Mods..., each with a tooltip. - Back/Escape returns to the screen it came from. - An Extras sub-setting is greyed out while its parent switch is off. - **Play with Friends (new vanilla-style screen, `friends_screen.rs`)** - Sharing a world used to live only in the Horizon pause menu. It now opens from the **Friends icon vanilla's PauseScreen already has** (`CommonButtons.friends`, between Feedback and Player Reporting). - The screen has a title, centred text and vanilla buttons: Start Sharing, then Copy Code and Stop Sharing, with Troubleshooting... beside Done when friends on the internet can't reach the host. - The icon shows the "Play with Friends" tooltip and takes controller focus. - **Join a Friend** - It used to be reachable only from Horizon's multiplayer page. It now opens from the **title screen's Friends icon** (vanilla's, previously inactive). - **Direct Connection** also accepts a full invite code. Anything that isn't a valid code is still treated as a server address. - **Docs and screenshots:** - extras, graphics, controllers, play-with-friends, design-system, mods, shader-packs, native-client, agent-control, the README and the website docs (settings, multiplayer, index, install, mods) now describe the vanilla screens. - The website's screenshot tabs drop the four Horizon-menu captures (menu-title/worlds/options/pause). - settings-simple/advanced (and the website's settings webp) are new vanilla-style captures. - **Diff:** 73 files, +783 / −5170. ## Why Ludovic, 2026-10-22: for 0.2.0, drop the Horizon in-game menu entirely. Keep the base Java menus and add Horizon's settings the way modpacks do, in Minecraft's style, without a second UI. ## Every Horizon setting and where it lives now | Setting(s) | Before (Horizon style) | Now | | --- | --- | --- | | Graphics: preset, LOD distance | Options → Video (Simple) | Video Settings → **Horizon Graphics...**; Options → Horizon Settings → Graphics... | | Advanced graphics: cave/leaf/entity culling, chunk updates, upload budget, sky, fog, weather, animated textures, present mode, frame pacing, worker threads, overlay, resolution scale, FXAA, battery mode, graphics API (Windows) | Options → Video (Advanced) | Video Settings → **Advanced Graphics...**; Horizon Settings → Advanced Graphics... | | Shader packs | Options → Video → Shader packs | Video Settings → **Shader Packs...**; Horizon Settings → Shader Packs... | | Controller: enabled, vibration, adaptive triggers, lightbar, look sensitivity, sneak toggle, invert X/Y, deadzones, glyphs, menu navigation, on-screen keyboard, controller binds | Options → Controls → Controller | Controls → **Controller Settings...** (unchanged); Horizon Settings → Controller Settings... | | Extras: fullbright, dynamic lights, zoom (+key, start, smooth, slower turning), minimap (+subs), FPS counter (+subs), keystrokes (+subs), mouse tweaks (+wheel), inventory sort (+key), auto-reconnect | Options → Horizon Extras | Horizon Settings → **Extras...** (sub-settings greyed while their switch is off) | | Mods | Options → Mods | Options → **Mods...** (unchanged); Horizon Settings → Mods... | | Share this world (invite code, copy, stop, who's here) | Horizon pause menu → Invite friends | Pause → **Friends icon** → Play with Friends | | Join by invite code, relay (`friendsRelay`) | Horizon multiplayer → Join a Friend | Title → **Friends icon** → Join a Friend; also Multiplayer → Direct Connection (paste the code) | | Open to LAN | Pause → World Options | unchanged | | Simple / Advanced level | Video page switch | removed: they are two screens now (`level:` ignored) | | Menu style | Options + launcher Settings | removed (`menuStyle:` ignored; launcher row, CLI and MCP removed) | | Update channel, server thread | launcher only | unchanged (the game never showed them) | Nothing that was reachable before has become unreachable. The vanilla-style pages (Graphics, Advanced Graphics, Shader Packs, Controller, Extras, Mods) already existed for the Classic style. This PR hangs them under one Horizon Settings screen and moves the two Horizon-only screens (sharing and joining) behind vanilla's own Friends buttons. ## Controller navigation (pad_menu.rs), checked with the virtual pad - **Options → Horizon Settings → Graphics and back:** down ×4, left, A on Horizon Settings..., A on Graphics..., then B, B returns through Horizon Settings to Options. - **Pause → Friends:** from Statistics, down focuses the Friends icon (215,116); A opens Play with Friends, and A starts sharing. - **Focus outline:** vanilla's white outline is drawn on every page (the Horizon focus ring is gone). ## Screenshots (Mac mini, game's own `--offscreen` capture, 1280×720, scratch home) | Options | Horizon Settings | | --- | --- | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-main.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-horizon.png) | | **Video Settings** | **Pause (Friends icon active)** | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-video.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/pause.png) | | **Play with Friends** | **Sharing (code and LAN address blacked out)** | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/friends.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/friends-sharing.png) | | **Graphics** | **Advanced Graphics** | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-graphics.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-graphics-advanced.png) | | **Extras** | **Controller Settings (pad focus)** | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-extras.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/options-controller.png) | | **Title (Friends icon now active)** | **Join a Friend** | | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/title.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/7074102ed4286515b0ba2793f1e6b65ccb01dcb9/menus-vanilla/join-a-friend.png) | The title's plain grey background (no panorama) is the same on main in offscreen captures (checked with a main-based build). It is not from this PR and is noted in LATER. ## How tested (Mac mini; rerun on the merged head bf274d92, main 07e71797) ``` cargo fmt --all -- --check exit 0 cargo clippy --workspace --all-targets -- -D warnings exit 0 cargo clippy -p horizon-client --all-targets --no-default-features -- -D warnings exit 0 cargo test -p horizon-client exit 0 (1129 passed, 0 failed) cargo test -p horizon-theme exit 0 launcher: cargo fmt --check exit 0 launcher: cargo clippy --all-targets --features gpui/runtime_shaders -D warnings exit 0 launcher: cargo test --features gpui/runtime_shaders exit 0 (111 passed) tools/parity.py --changed origin/main 102 passed, 0 failed ``` New tests: - `horizon_settings_hang_off_options_and_reach_every_horizon_page` - `extras_from_horizon_settings_edit_shared_settings_and_return` - friends_screen `share_then_copy_and_stop` (also asserts the text stays above the footer with a real-length code and status) and `a_server_offers_no_sharing` - `direct_connection_joins_a_pasted_invite_and_keeps_host_names` - `Graphics::parse("level:advanced")` is ignored ## Needs Ludovic - **Conflicts with open PRs:** - **#1260** (Shader Packs per-pack options) edits `options_horizon.rs`, which this PR deletes. Its options page needs porting to the vanilla Shader Packs page in `options_ui.rs` when it rebases. - **#1259** (website Blocks redesign) touches the same website files (index.html screenshot tabs, LEGAL.md, assets.mjs) and `docs/design-system.md`. Expect doc-level conflicts. - Play with Friends works on both paths since #1285 (merged in): the Friends icon is active in single player on the render thread and on `--server-thread`, and inactive only on another server. `tools/test_friends.py --server-thread` passes on this branch. - The leftovers are in FEATURES.md LATER 4zb. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:46 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3472
No description provided.