[PR #2388] [MERGED] Ask before the death screen's Title Screen button leaves the world #4267

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2388
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/death-screen-quit-confirm


📝 Commits (2)

  • f1949c3 Ask before the death screen's Title Screen button leaves the world
  • 62794a3 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

5 files changed (+95 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/confirm_screen.rs (+13 -2)
📝 crates/horizon-client/src/game.rs (+15 -0)
📝 crates/horizon-client/src/game/chat.rs (+4 -0)
📝 crates/horizon-client/src/game/remote.rs (+2 -0)
📝 crates/horizon-client/src/game/screens.rs (+61 -0)

📄 Description

What and why

On the death screen, "Title Screen" left the world at once. In vanilla, outside hardcore it first opens a confirm screen ("Are you sure you want to quit?") with "Title Screen" and "Respawn" buttons that stay greyed out for 20 ticks. Choosing Title Screen leaves; choosing Respawn, or pressing Escape after the delay, respawns. In hardcore the button still leaves directly. Horizon now opens that confirm screen, reusing the existing Confirm layout, on the death screen's background.

Vanilla reference

  • DeathScreen.handleExitToTitleScreen: hardcore calls exitToTitleScreen(); otherwise a TitleConfirmScreen with deathScreen.quit.confirm, an empty message, deathScreen.titleScreen / deathScreen.respawn, then setDelay(20). Yes exits, no calls player.respawn().
  • DeathScreen.TitleConfirmScreen.extractBackground: the death gradient.
  • ConfirmScreen.setDelay / keyPressed: buttons inactive for the delay, Escape answers no once it is over.

Self-check

cargo check -p horizon-client passes.


🔄 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/2388 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/death-screen-quit-confirm` --- ### 📝 Commits (2) - [`f1949c3`](https://github.com/horizon-rust/horizon/commit/f1949c3bdacece089ba1dfa2bcfe31eb9698e2ce) Ask before the death screen's Title Screen button leaves the world - [`62794a3`](https://github.com/horizon-rust/horizon/commit/62794a3fde3811c34c6f82908a558a2cbf782f75) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **5 files changed** (+95 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/confirm_screen.rs` (+13 -2) 📝 `crates/horizon-client/src/game.rs` (+15 -0) 📝 `crates/horizon-client/src/game/chat.rs` (+4 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -0) 📝 `crates/horizon-client/src/game/screens.rs` (+61 -0) </details> ### 📄 Description ## What and why On the death screen, "Title Screen" left the world at once. In vanilla, outside hardcore it first opens a confirm screen ("Are you sure you want to quit?") with "Title Screen" and "Respawn" buttons that stay greyed out for 20 ticks. Choosing Title Screen leaves; choosing Respawn, or pressing Escape after the delay, respawns. In hardcore the button still leaves directly. Horizon now opens that confirm screen, reusing the existing `Confirm` layout, on the death screen's background. ## Vanilla reference - `DeathScreen.handleExitToTitleScreen`: hardcore calls `exitToTitleScreen()`; otherwise a `TitleConfirmScreen` with `deathScreen.quit.confirm`, an empty message, `deathScreen.titleScreen` / `deathScreen.respawn`, then `setDelay(20)`. Yes exits, no calls `player.respawn()`. - `DeathScreen.TitleConfirmScreen.extractBackground`: the death gradient. - `ConfirmScreen.setDelay` / `keyPressed`: buttons inactive for the delay, Escape answers no once it is over. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15: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#4267
No description provided.