[PR #2669] [MERGED] Stack toasts in up to five slots and hide them with F1 #4524

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

📋 Pull Request Information

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

Base: main ← Head: fix/toast-stack-f1


📝 Commits (1)

  • 29616ad Stack toasts in five slots and hide them with F1

📊 Changes

4 files changed (+117 additions, -45 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -4)
📝 crates/horizon-client/src/game/advancements.rs (+88 -35)
📝 crates/horizon-client/src/game/server_packs.rs (+21 -6)
📝 crates/horizon-client/src/toasts.rs (+3 -0)

📄 Description

What and why

  • Stacking toasts. Advancement and recipe toasts showed one at a time. They now stack in the top right in up to five 32-pixel slots, and the rest wait in the queue for a free slot. Each toast has its own slide and timer. A challenge toast's own sound plays once as it leaves the queue, and only the first visibility change of an update plays its slide sound. The server pack download toasts use the same slots, so they no longer overlap.
  • F1. With the HUD hidden (F1) the toasts are no longer drawn. They still keep timing out in the background, like vanilla.

Vanilla reference

  • ToastManager (SLOT_COUNT, update, findFreeSlotsIndex, extractRenderState with hud.isHidden()), ToastInstance.

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/2669 **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/toast-stack-f1` --- ### 📝 Commits (1) - [`29616ad`](https://github.com/horizon-rust/horizon/commit/29616ad50247b50e0c98a135b21f1dfb56aca38d) Stack toasts in five slots and hide them with F1 ### 📊 Changes **4 files changed** (+117 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -4) 📝 `crates/horizon-client/src/game/advancements.rs` (+88 -35) 📝 `crates/horizon-client/src/game/server_packs.rs` (+21 -6) 📝 `crates/horizon-client/src/toasts.rs` (+3 -0) </details> ### 📄 Description ## What and why - **Stacking toasts.** Advancement and recipe toasts showed one at a time. They now stack in the top right in up to five 32-pixel slots, and the rest wait in the queue for a free slot. Each toast has its own slide and timer. A challenge toast's own sound plays once as it leaves the queue, and only the first visibility change of an update plays its slide sound. The server pack download toasts use the same slots, so they no longer overlap. - **F1.** With the HUD hidden (F1) the toasts are no longer drawn. They still keep timing out in the background, like vanilla. ## Vanilla reference - `ToastManager` (`SLOT_COUNT`, `update`, `findFreeSlotsIndex`, `extractRenderState` with `hud.isHidden()`), `ToastInstance`. ## 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:47 +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#4524
No description provided.