[PR #570] [MERGED] Integrated server: single-player pause menu labels #2647

Closed
opened 2026-11-02 15:57:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: perf/sp-pause-labels


📝 Commits (2)

  • bd0dd97 Integrated server: build only the font, not the whole HUD atlas
  • 30d11d6 Integrated server: single-player pause menu labels

📊 Changes

5 files changed (+139 additions, -59 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -1)
📝 crates/horizon-client/src/game/debug_keys.rs (+1 -1)
📝 crates/horizon-client/src/game/integrated.rs (+22 -6)
📝 crates/horizon-client/src/game/screens.rs (+7 -10)
📝 crates/horizon-client/src/hud.rs (+108 -41)

📄 Description

What and why

On its server thread (#544), the window joins its single-player world like a server. The pause menu took that literally. The Horizon pause menu showed "Multiplayer" with a Disconnect button. F3+Escape opened the full menu, as it does on a server, rather than vanilla's single-player PauseScreen(false).

  • The server thread now hands the window the world's name (LevelName) along with its end of the connection.
  • has_singleplayer_server() (vanilla's Minecraft.hasSingleplayerServer) is true for a world run in the frame or on its server thread. pauses_game and F3+Escape use it.
  • The pause menu shows the world's name and Save and quit for the server thread too. Leaving already saves and returns to the title (#544).

The classic pause menu already showed "Save and Quit to Title". It is unchanged.

Checks

  • cargo fmt --all --check: ok
  • cargo clippy -p horizon-client --all-targets -- -D warnings: ok
  • cargo test -p horizon-client --lib: 772 passed, 0 failed
  • Smoke run with --server-thread: Escape opens the pause menu and the server pauses, as before.

Stacked on #569. skip-release until single player uses the server thread by default.

🤖 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/570 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/sp-pause-labels` --- ### 📝 Commits (2) - [`bd0dd97`](https://github.com/horizon-rust/horizon/commit/bd0dd979a014f68fdc43188ef1dcdfbfc3b98186) Integrated server: build only the font, not the whole HUD atlas - [`30d11d6`](https://github.com/horizon-rust/horizon/commit/30d11d6a2e87cb5cf4e64ec1c19d04be9f0fddc5) Integrated server: single-player pause menu labels ### 📊 Changes **5 files changed** (+139 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -1) 📝 `crates/horizon-client/src/game/debug_keys.rs` (+1 -1) 📝 `crates/horizon-client/src/game/integrated.rs` (+22 -6) 📝 `crates/horizon-client/src/game/screens.rs` (+7 -10) 📝 `crates/horizon-client/src/hud.rs` (+108 -41) </details> ### 📄 Description ## What and why On its server thread (#544), the window joins its single-player world like a server. The pause menu took that literally. The Horizon pause menu showed "Multiplayer" with a **Disconnect** button. F3+Escape opened the full menu, as it does on a server, rather than vanilla's single-player `PauseScreen(false)`. - The server thread now hands the window the world's name (`LevelName`) along with its end of the connection. - `has_singleplayer_server()` (vanilla's `Minecraft.hasSingleplayerServer`) is true for a world run in the frame or on its server thread. `pauses_game` and F3+Escape use it. - The pause menu shows the world's name and **Save and quit** for the server thread too. Leaving already saves and returns to the title (#544). The classic pause menu already showed "Save and Quit to Title". It is unchanged. ## Checks - `cargo fmt --all --check`: ok - `cargo clippy -p horizon-client --all-targets -- -D warnings`: ok - `cargo test -p horizon-client --lib`: 772 passed, 0 failed - Smoke run with `--server-thread`: Escape opens the pause menu and the server pauses, as before. Stacked on #569. `skip-release` until single player uses the server thread by default. 🤖 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-02 15:57:55 +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#2647
No description provided.