[PR #2651] [MERGED] Squeeze hotbar slots that gain items and draw the bundle bar #4506

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/2651
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/hotbar-pop-bundle-bar


📝 Commits (2)

  • 0cd3410 Squeeze hotbar slots that gain items and draw the bundle fullness bar
  • 5adf5c4 Merge main into fix/hotbar-pop-bundle-bar

📊 Changes

3 files changed (+44 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/bundle.rs (+11 -0)
📝 crates/horizon-client/src/game.rs (+15 -3)
📝 crates/horizon-client/src/game/remote.rs (+18 -0)

📄 Description

What and why

  • A hotbar slot that gains items now squeezes for 5 ticks, like vanilla. The pop time is set when the server sends a hotbar slot with more items than before (or into an empty slot), and counts down each tick. The hotbar draw already had the squeeze maths but always got 0.
  • Bundles now draw their fullness bar over the slot (blue, red when full), in the hotbar and in menus. Before, only damaged items got a bar.

Vanilla reference

  • ClientPacketListener.handleContainerSetSlot (setPopTime(5)), ItemStack.inventoryTick, Hud.extractSlot.
  • BundleItem.isBarVisible, getBarWidth, getBarColor.

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/2651 **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/hotbar-pop-bundle-bar` --- ### 📝 Commits (2) - [`0cd3410`](https://github.com/horizon-rust/horizon/commit/0cd3410a2db5a69d146b3a18631a73f99d9d21cb) Squeeze hotbar slots that gain items and draw the bundle fullness bar - [`5adf5c4`](https://github.com/horizon-rust/horizon/commit/5adf5c43a202281dab6fd28d050b99ce4b21ad35) Merge main into fix/hotbar-pop-bundle-bar ### 📊 Changes **3 files changed** (+44 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/bundle.rs` (+11 -0) 📝 `crates/horizon-client/src/game.rs` (+15 -3) 📝 `crates/horizon-client/src/game/remote.rs` (+18 -0) </details> ### 📄 Description ## What and why - A hotbar slot that gains items now squeezes for 5 ticks, like vanilla. The pop time is set when the server sends a hotbar slot with more items than before (or into an empty slot), and counts down each tick. The hotbar draw already had the squeeze maths but always got 0. - Bundles now draw their fullness bar over the slot (blue, red when full), in the hotbar and in menus. Before, only damaged items got a bar. ## Vanilla reference - `ClientPacketListener.handleContainerSetSlot` (`setPopTime(5)`), `ItemStack.inventoryTick`, `Hud.extractSlot`. - `BundleItem.isBarVisible`, `getBarWidth`, `getBarColor`. ## 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#4506
No description provided.