[PR #2672] [MERGED] Show the smithing template lines in item tooltips #4527

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

📋 Pull Request Information

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

Base: main ← Head: fix/smithing-template-tooltip


📝 Commits (1)

  • 581828b Show the smithing template lines in item tooltips

📊 Changes

2 files changed (+41 additions, -24 deletions)

View changed files

📝 crates/horizon-client/src/game/stations.rs (+5 -0)
📝 crates/horizon-client/src/item_tooltip.rs (+36 -24)

📄 Description

What and why

Hovering a smithing template in the inventory showed only its name. The "Smithing Template", "Applies to:" and "Ingredients:" lines existed only for the recipe book. The template lines now come from one function (smithing_template_lines) used by both, and the stack tooltip adds them right after the name, in gray titles over blue descriptions, as vanilla does.

Vanilla reference

  • SmithingTemplateItem.appendHoverText (colours TITLE_FORMAT gray, DESCRIPTION_FORMAT blue), and ItemStack.addDetailsToTooltip, where Item.appendHoverText comes before the component lines.

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/2672 **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/smithing-template-tooltip` --- ### 📝 Commits (1) - [`581828b`](https://github.com/horizon-rust/horizon/commit/581828bf9419573b064976f704c969a279b742e6) Show the smithing template lines in item tooltips ### 📊 Changes **2 files changed** (+41 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/stations.rs` (+5 -0) 📝 `crates/horizon-client/src/item_tooltip.rs` (+36 -24) </details> ### 📄 Description ## What and why Hovering a smithing template in the inventory showed only its name. The "Smithing Template", "Applies to:" and "Ingredients:" lines existed only for the recipe book. The template lines now come from one function (`smithing_template_lines`) used by both, and the stack tooltip adds them right after the name, in gray titles over blue descriptions, as vanilla does. ## Vanilla reference - `SmithingTemplateItem.appendHoverText` (colours `TITLE_FORMAT` gray, `DESCRIPTION_FORMAT` blue), and `ItemStack.addDetailsToTooltip`, where `Item.appendHoverText` comes before the component lines. ## 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: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#4527
No description provided.