[PR #6948] [MERGED] feat(mods): draw item stacks on screens #7223

Closed
opened 2026-11-03 06:35:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6948
Author: @Xmilon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: native/item-stack-screen


📝 Commits (1)

  • ff55510 feat(mods): draw item stacks on screens

📊 Changes

9 files changed (+126 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/mod_api_host_generated.rs (+3 -0)
📝 crates/horizon-client/src/game/native_hooks.rs (+18 -0)
📝 crates/horizon-client/src/mod_api/generated_host.rs (+3 -0)
➕ tests/test_native_item_stack.py (+61 -0)
📝 tests/test_stamp_native_hooks.py (+2 -0)
📝 tools/native-hook-fragments/README.md (+1 -1)
➕ tools/native-hook-fragments/item_stack.json (+8 -0)
📝 tools/stamp_native_hooks.py (+6 -0)
📝 xtask/src/mod_api.rs (+24 -1)

📄 Description

🤖 Opened by Xmilon's AI agent (Codex, gpt-6.1-terra), not by Xmilon personally.

What and why

Closes #6563. Part of #4953.

Expose a screen helper that draws an ItemStack's resolved model and slot decorations, without imposing a count. Permit pending helper entries in API fragments so the Host method is generated now and stamped with the rest of its fragment.

Kind

  • feature: something new for players

Vanilla reference

Horizon-only mod API; reuses the existing slot model and decoration rendering paths.

Other projects' code

None.

Self-check

  • cargo fmt --all -- --check and git diff --check passed.
  • Before the request to stop local builds: cargo run -p xtask -- mod-api and python -m unittest discover -s tests -p test_stamp_native_hooks.py passed.
  • No client build, clippy, new rendering test, or in-game screenshot was run; upstream CI is requested to verify these changes. tools/pr_ready.py was not run locally (cold builds are slow on this machine); the verify job on this PR is the check.

🤖 Generated with Codex


🔄 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/6948 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `native/item-stack-screen` --- ### 📝 Commits (1) - [`ff55510`](https://github.com/horizon-rust/horizon/commit/ff5551084a3abdade9066876e562c43f58abbccc) feat(mods): draw item stacks on screens ### 📊 Changes **9 files changed** (+126 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mod_api_host_generated.rs` (+3 -0) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+18 -0) 📝 `crates/horizon-client/src/mod_api/generated_host.rs` (+3 -0) ➕ `tests/test_native_item_stack.py` (+61 -0) 📝 `tests/test_stamp_native_hooks.py` (+2 -0) 📝 `tools/native-hook-fragments/README.md` (+1 -1) ➕ `tools/native-hook-fragments/item_stack.json` (+8 -0) 📝 `tools/stamp_native_hooks.py` (+6 -0) 📝 `xtask/src/mod_api.rs` (+24 -1) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Codex, gpt-6.1-terra), not by Xmilon personally. ## What and why Closes #6563. Part of #4953. Expose a screen helper that draws an ItemStack's resolved model and slot decorations, without imposing a count. Permit pending helper entries in API fragments so the Host method is generated now and stamped with the rest of its fragment. ## Kind - [x] feature: something new for players ## Vanilla reference Horizon-only mod API; reuses the existing slot model and decoration rendering paths. ## Other projects' code None. ## Self-check - `cargo fmt --all -- --check` and `git diff --check` passed. - Before the request to stop local builds: `cargo run -p xtask -- mod-api` and `python -m unittest discover -s tests -p test_stamp_native_hooks.py` passed. - No client build, clippy, new rendering test, or in-game screenshot was run; upstream CI is requested to verify these changes. `tools/pr_ready.py` was not run locally (cold builds are slow on this machine); the `verify` job on this PR is the check. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:57 +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#7223
No description provided.