[PR #2374] [MERGED] Keep the effect icons on screen over the pause menu, chat and other screens #4254

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

📋 Pull Request Information

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

Base: main ← Head: fix/effect-icons-over-screens


📝 Commits (1)

  • 74dc389 Keep the effect icons on screen over the pause menu, chat and other screens

📊 Changes

1 file changed (+21 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/potions.rs (+21 -2)

📄 Description

What and why

The effect icons in the top right disappeared whenever any screen was open: the pause menu, chat, the death screen, containers and so on. Vanilla hides them only on the survival and creative inventories, which draw their own effect list beside the window. Horizon drew the icons only while playing. They are now hidden only when one of those two inventories is open and has room for its own list.

Vanilla reference

  • Hud.extractEffects: skipped only when screen.showsActiveEffects().
  • InventoryScreen.showsActiveEffects and CreativeModeInventoryScreen.showsActiveEffects: EffectsInInventory.canSeeEffects(), true when at least 32 pixels are free right of the window.
  • Every other Screen keeps the default 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/2374 **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/effect-icons-over-screens` --- ### 📝 Commits (1) - [`74dc389`](https://github.com/horizon-rust/horizon/commit/74dc389321d923a047e245c2e91cbbb999a2b59d) Keep the effect icons on screen over the pause menu, chat and other screens ### 📊 Changes **1 file changed** (+21 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/potions.rs` (+21 -2) </details> ### 📄 Description ## What and why The effect icons in the top right disappeared whenever any screen was open: the pause menu, chat, the death screen, containers and so on. Vanilla hides them only on the survival and creative inventories, which draw their own effect list beside the window. Horizon drew the icons only while playing. They are now hidden only when one of those two inventories is open and has room for its own list. ## Vanilla reference - `Hud.extractEffects`: skipped only when `screen.showsActiveEffects()`. - `InventoryScreen.showsActiveEffects` and `CreativeModeInventoryScreen.showsActiveEffects`: `EffectsInInventory.canSeeEffects()`, true when at least 32 pixels are free right of the window. - Every other `Screen` keeps the default `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:15:49 +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#4254
No description provided.