[PR #4617] [MERGED] Draw ToastManager toasts over the title screen #5731

Closed
opened 2026-11-03 05:14:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4617
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4428-title-screen-toasts


📝 Commits (1)

  • d0fbd3f Draw ToastManager toasts over the title screen.

📊 Changes

1 file changed (+15 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+15 -7)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

What and why

Fixes #4428. The title-screen path in hud_layers drew the title and returned before ToastManager.extractRenderState, so advancement, tutorial and pack toasts (including a resource-reload failure) never appeared on the title. Draw them after the title, as vanilla does over every screen.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

ToastManager.extractRenderState / Gui.render order: the toast manager draws over whichever screen is open, including TitleScreen. Horizon already drew pack toasts on the connection and loading early returns; the title early return now does the same for advancement, tutorial and pack toasts.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on MacBook-Air-ukasz, against upstream/main at 6e8e088c2, 4 min 31 s)

Check Result
Scope ✅ 2 files, +15 −7
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 481 passed (29 s)
rustfmt ✅ (4 s)
clippy ✅ (57 s)
tests: horizon-client ✅ 1087 passed (2 min 58 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Screenshots

N/A — draw-order fix; toasts only appear when one is active on the title.


🔄 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/4617 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4428-title-screen-toasts` --- ### 📝 Commits (1) - [`d0fbd3f`](https://github.com/horizon-rust/horizon/commit/d0fbd3f6385bc6c18a8effa3fba0b5907d81e052) Draw ToastManager toasts over the title screen. ### 📊 Changes **1 file changed** (+15 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+15 -7) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## What and why Fixes #4428. The title-screen path in `hud_layers` drew the title and returned before `ToastManager.extractRenderState`, so advancement, tutorial and pack toasts (including a resource-reload failure) never appeared on the title. Draw them after the title, as vanilla does over every screen. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `ToastManager.extractRenderState` / `Gui.render` order: the toast manager draws over whichever screen is open, including `TitleScreen`. Horizon already drew pack toasts on the connection and loading early returns; the title early return now does the same for advancement, tutorial and pack toasts. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on MacBook-Air-ukasz, against upstream/main at 6e8e088c2, 4 min 31 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +15 −7 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 481 passed (29 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (57 s) | | tests: horizon-client | ✅ 1087 passed (2 min 58 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | ## Screenshots N/A — draw-order fix; toasts only appear when one is active on the title. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:37 +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#5731
No description provided.