[PR #56] [MERGED] Fix creative inventory tab and toggle-sprint item drops #2304

Closed
opened 2026-11-02 15:54:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/56
Author: @Online5277
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/creative-inventory-toggle-drop


📝 Commits (3)

  • 9f0df29 Keep the inventory tab in the creative screen
  • 767ed4c Use physical Ctrl state for stack dropping, not toggle sprint
  • e905c10 Address creative inventory review on current main

📊 Changes

3 files changed (+335 additions, -94 deletions)

View changed files

📝 crates/horizon-client/src/creative.rs (+72 -0)
📝 crates/horizon-client/src/game.rs (+262 -86)
📝 crates/horizon-client/src/game/agent.rs (+1 -8)

📄 Description

Summary

Keep the creative inventory tab in the creative screen, with its 195×136 layout, player preview, armor/offhand, inventory, hotbar and trash slot. Reuse the inventory menu engine for clicks, drags and hotkeys. Keep first-person hand geometry visible behind inventory screens.

Rebased onto main at b2462d54, including #87. Reuse main's physical-key tracking and has_shift_down() for trash; both Ctrl+Q handlers share a physical-Ctrl helper, so toggle sprint cannot cause a whole-stack drop. Preserve control-socket key handling from main and the agent's explicit drop-all command.

Use main's container_screen handling with creative inventory bounds and mouse releases. Consume tab-click releases so switching tabs while carrying an item does not drop it outside the panel.

Validation

  • Replace all three Python source-extraction probes with Rust tests of production code: creative tab selection and slot layout, physical Ctrl combinations with sprint toggled, and consumed tab releases with a carried stack.
  • Remove the hand-policy probe as requested; retain the hand-rendering change.
  • Client Rust unit/integration tests and the remaining workspace Rust tests pass.
  • All 173 existing Python tests pass.
  • Workspace/all-target Clippy with warnings denied, formatting, and the public-tree history check pass.
  • Focused independent review of the rebase and creative container integration.

The updated branch has not been tested in-game or against the vanilla parity harnesses. No client windows were launched and the primary preview binary was not replaced.


🔄 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/56 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/creative-inventory-toggle-drop` --- ### 📝 Commits (3) - [`9f0df29`](https://github.com/horizon-rust/horizon/commit/9f0df29d6c2efdb295c518e84f35c118ceef81e0) Keep the inventory tab in the creative screen - [`767ed4c`](https://github.com/horizon-rust/horizon/commit/767ed4cb47b714631209cc9e906dc4b40ac9b37d) Use physical Ctrl state for stack dropping, not toggle sprint - [`e905c10`](https://github.com/horizon-rust/horizon/commit/e905c104004db1f5cefb0a31eeb397879c12d109) Address creative inventory review on current main ### 📊 Changes **3 files changed** (+335 additions, -94 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/creative.rs` (+72 -0) 📝 `crates/horizon-client/src/game.rs` (+262 -86) 📝 `crates/horizon-client/src/game/agent.rs` (+1 -8) </details> ### 📄 Description ## Summary Keep the creative inventory tab in the creative screen, with its 195×136 layout, player preview, armor/offhand, inventory, hotbar and trash slot. Reuse the inventory menu engine for clicks, drags and hotkeys. Keep first-person hand geometry visible behind inventory screens. Rebased onto main at `b2462d54`, including #87. Reuse main's physical-key tracking and `has_shift_down()` for trash; both Ctrl+Q handlers share a physical-Ctrl helper, so toggle sprint cannot cause a whole-stack drop. Preserve control-socket key handling from main and the agent's explicit drop-all command. Use main's `container_screen` handling with creative inventory bounds and mouse releases. Consume tab-click releases so switching tabs while carrying an item does not drop it outside the panel. ## Validation - Replace all three Python source-extraction probes with Rust tests of production code: creative tab selection and slot layout, physical Ctrl combinations with sprint toggled, and consumed tab releases with a carried stack. - Remove the hand-policy probe as requested; retain the hand-rendering change. - Client Rust unit/integration tests and the remaining workspace Rust tests pass. - All 173 existing Python tests pass. - Workspace/all-target Clippy with warnings denied, formatting, and the public-tree history check pass. - Focused independent review of the rebase and creative container integration. The updated branch has not been tested in-game or against the vanilla parity harnesses. No client windows were launched and the primary preview binary was not replaced. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:46 +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#2304
No description provided.