[PR #4283] [MERGED] Pad the creative tab tooltip like the item tooltip #5542

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4283
Author: @DUzzL
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/issue-4269-creative-tab-tooltip


📝 Commits (1)

  • ca04a6d Draw creative tab and trash tooltips with the item tooltip box

📊 Changes

2 files changed (+10 additions, -10 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+7 -7)
📝 crates/horizon-client/src/game/stations.rs (+3 -3)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4269

Cause: Game::tooltip in game.rs (used by creative tab and trash-slot tooltips) drew its own box with 3 px padding and no side fill or border columns. The item tooltip pads 4 px, so the creative tab tooltip was clipped by 1 to 2 px at the tab edges.

Change: Game::tooltip now uses the same tooltip_geometry, tooltip_box and tooltip_text helpers as the item tooltip. Those three are made pub(super) in game/stations.rs. The clamps at the right, bottom and top edges are the shared ones.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. The 20 tooltip-filtered lib tests pass. No new test was added.

Not tested: no in-game run, so the pixel result and the trash-slot tooltip at runtime are unchecked. tools/pr_ready.py not run.


🔄 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/4283 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4269-creative-tab-tooltip` --- ### 📝 Commits (1) - [`ca04a6d`](https://github.com/horizon-rust/horizon/commit/ca04a6de62b1d8385a5fb513ea28ccf53c6560c4) Draw creative tab and trash tooltips with the item tooltip box ### 📊 Changes **2 files changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+7 -7) 📝 `crates/horizon-client/src/game/stations.rs` (+3 -3) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4269 **Cause:** `Game::tooltip` in `game.rs` (used by creative tab and trash-slot tooltips) drew its own box with 3 px padding and no side fill or border columns. The item tooltip pads 4 px, so the creative tab tooltip was clipped by 1 to 2 px at the tab edges. **Change:** `Game::tooltip` now uses the same `tooltip_geometry`, `tooltip_box` and `tooltip_text` helpers as the item tooltip. Those three are made `pub(super)` in `game/stations.rs`. The clamps at the right, bottom and top edges are the shared ones. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. The 20 tooltip-filtered lib tests pass. No new test was added. **Not tested:** no in-game run, so the pixel result and the trash-slot tooltip at runtime are unchecked. `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:17 +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#5542
No description provided.