[PR #154] [MERGED] Fix World Options pause and Escape behavior #2359

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

📋 Pull Request Information

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

Base: main ← Head: t3code/fix-world-options-menu


📝 Commits (1)

  • 90115e5 Fix World Options pause and Escape behavior

📊 Changes

2 files changed (+9 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+9 -2)
📝 crates/horizon-client/src/game/lan_screen.rs (+0 -2)

📄 Description

Opening World Options from the pause menu previously resumed the world, and its text-input handler swallowed Escape. Include World Options among pausing screens and let Escape reach the existing close handler, including while the LAN port field is focused.

Apply now commits the settings and returns to the pause menu, matching Cancel and Escape instead of immediately resuming gameplay.

Validation:

  • Built the client with cargo build --locked -p horizon-client --bin horizon-client --profile fast.
  • Passed cargo fmt --all -- --check and git diff --check.
  • Reproduced advancing ticks and world time in the original binary.
  • Live checks in Classic and Horizon menu styles confirmed frozen ticks/time, keyboard Escape with and without port-field focus, discarded edits on Escape/Cancel, applied edits returning to pause, and gameplay ticking after resume.

🔄 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/154 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3code/fix-world-options-menu` --- ### 📝 Commits (1) - [`90115e5`](https://github.com/horizon-rust/horizon/commit/90115e55749a8af92aaa0ee6ae9f86687eb580d5) Fix World Options pause and Escape behavior ### 📊 Changes **2 files changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+9 -2) 📝 `crates/horizon-client/src/game/lan_screen.rs` (+0 -2) </details> ### 📄 Description Opening World Options from the pause menu previously resumed the world, and its text-input handler swallowed Escape. Include World Options among pausing screens and let Escape reach the existing close handler, including while the LAN port field is focused. Apply now commits the settings and returns to the pause menu, matching Cancel and Escape instead of immediately resuming gameplay. Validation: - Built the client with `cargo build --locked -p horizon-client --bin horizon-client --profile fast`. - Passed `cargo fmt --all -- --check` and `git diff --check`. - Reproduced advancing ticks and world time in the original binary. - Live checks in Classic and Horizon menu styles confirmed frozen ticks/time, keyboard Escape with and without port-field focus, discarded edits on Escape/Cancel, applied edits returning to pause, and gameplay ticking after resume. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:18 +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#2359
No description provided.