[PR #2658] [MERGED] Draw the death screen cause with its styling #4513

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

📋 Pull Request Information

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

Base: main ← Head: fix/death-message-styled


📝 Commits (3)

  • ffad9e1 Keep the styling of the death message on the death screen
  • 66b9b33 Merge remote-tracking branch 'origin/main' into HEAD
  • e93299f Merge main into fix/death-message-styled

📊 Changes

1 file changed (+12 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+12 -4)

📄 Description

What and why

On a server (and in single player, which runs on the server thread), the death screen cause was flattened to a plain string, so a coloured part such as an enchanted or named item lost its style and the whole line was white. The client now keeps the message component and draws it styled, centred the same way the local death screen does.

Vanilla reference

  • DeathScreen (output.accept(TextAlignment.CENTER, middleLine, 85, this.causeOfDeath)), ClientPacketListener.handlePlayerCombatKill.

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/2658 **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/death-message-styled` --- ### 📝 Commits (3) - [`ffad9e1`](https://github.com/horizon-rust/horizon/commit/ffad9e1f0acbde0e338cc8f89c8dda5a1790d588) Keep the styling of the death message on the death screen - [`66b9b33`](https://github.com/horizon-rust/horizon/commit/66b9b3323c7589b18eff1d0e7f6317d1fdc5b5eb) Merge remote-tracking branch 'origin/main' into HEAD - [`e93299f`](https://github.com/horizon-rust/horizon/commit/e93299fb801315817fec53a391251f989ce7bb6a) Merge main into fix/death-message-styled ### 📊 Changes **1 file changed** (+12 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+12 -4) </details> ### 📄 Description ## What and why On a server (and in single player, which runs on the server thread), the death screen cause was flattened to a plain string, so a coloured part such as an enchanted or named item lost its style and the whole line was white. The client now keeps the message component and draws it styled, centred the same way the local death screen does. ## Vanilla reference - `DeathScreen` (`output.accept(TextAlignment.CENTER, middleLine, 85, this.causeOfDeath)`), `ClientPacketListener.handlePlayerCombatKill`. ## 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:42 +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#4513
No description provided.