[PR #2652] [MERGED] Open the Leave Bed chat screen while the player sleeps #4505

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

📋 Pull Request Information

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

Base: main ← Head: fix/leave-bed-screen


📝 Commits (1)

  • 1f98f3c Open the Leave Bed chat screen while the player sleeps

📊 Changes

3 files changed (+80 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -1)
📝 crates/horizon-client/src/game/chat.rs (+76 -1)
📝 crates/horizon-client/src/game/titles.rs (+1 -0)

📄 Description

What and why

While you sleep, vanilla opens a chat screen with a "Leave Bed" button. Horizon showed nothing, kept the mouse captured and only woke you with Esc or Shift.

Now a sleeping player gets that screen: the chat box, the Leave Bed button, and a free mouse. The button and Esc send the wake-up request. Enter sends the message and leaves the screen open. When you are awake again the screen closes, or becomes the normal chat screen if you had typed something. Shift no longer wakes you while the chat is open, so capital letters work.

Vanilla reference

  • Gui.tick: opens InBedChatScreen while the player is sleeping, and calls onPlayerWokeUp when they are not.
  • InBedChatScreen: the multiplayer.stopSleeping button at (width / 2 - 100, height - 40, 200 x 20), onClose sends STOP_SLEEPING, closeOnSubmit is false.

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/2652 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/leave-bed-screen` --- ### 📝 Commits (1) - [`1f98f3c`](https://github.com/horizon-rust/horizon/commit/1f98f3ca89d04dc6046ed5c2c4717c96496593ca) Open the Leave Bed chat screen while the player sleeps ### 📊 Changes **3 files changed** (+80 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -1) 📝 `crates/horizon-client/src/game/chat.rs` (+76 -1) 📝 `crates/horizon-client/src/game/titles.rs` (+1 -0) </details> ### 📄 Description ## What and why While you sleep, vanilla opens a chat screen with a "Leave Bed" button. Horizon showed nothing, kept the mouse captured and only woke you with Esc or Shift. Now a sleeping player gets that screen: the chat box, the Leave Bed button, and a free mouse. The button and Esc send the wake-up request. Enter sends the message and leaves the screen open. When you are awake again the screen closes, or becomes the normal chat screen if you had typed something. Shift no longer wakes you while the chat is open, so capital letters work. ## Vanilla reference - `Gui.tick`: opens `InBedChatScreen` while the player is sleeping, and calls `onPlayerWokeUp` when they are not. - `InBedChatScreen`: the `multiplayer.stopSleeping` button at (width / 2 - 100, height - 40, 200 x 20), `onClose` sends `STOP_SLEEPING`, `closeOnSubmit` is false. ## 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:17:40 +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#4505
No description provided.