[PR #6477] [MERGED] Tooltip display harness: every flag combination #6902

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6477
Author: @MSedgeMC
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/tooltip-display-table


📝 Commits (1)

  • d6b55b3 Tooltip display harness: every flag combination

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 tools/test_tooltip_display_parity.py (+3 -1)

📄 Description

Vanilla's ItemStack.getTooltipLines returns no lines at all when tooltip_display.hide_tooltip is set and the flag is not creative, and otherwise consults TooltipDisplay.shows per detail component, so hidden_components only removes the lines it names.

Horizon is not wrong here: TooltipDisplay::name_visible and TooltipDisplay::shows answer all eight combinations the same way as the pinned 26.3 client, and the harness only carried six of them.

Proven: python3 tools/parity.py tooltip_display on the build VM — PASS tooltip_display 211s, 12 of 12 cases identical to the pinned client, 12 output lines compared.

Not proven: tooltips of items other than the diamond sword and the stick the cases build, the creative-inventory flag as the game passes it, and what the game draws for a hidden tooltip.


🔄 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/6477 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/tooltip-display-table` --- ### 📝 Commits (1) - [`d6b55b3`](https://github.com/horizon-rust/horizon/commit/d6b55b3c956498b7dccf3f2111874f568cf32bd6) Tooltip display harness: every flag combination ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/test_tooltip_display_parity.py` (+3 -1) </details> ### 📄 Description Vanilla's `ItemStack.getTooltipLines` returns no lines at all when `tooltip_display.hide_tooltip` is set and the flag is not creative, and otherwise consults `TooltipDisplay.shows` per detail component, so `hidden_components` only removes the lines it names. Horizon is not wrong here: `TooltipDisplay::name_visible` and `TooltipDisplay::shows` answer all eight combinations the same way as the pinned 26.3 client, and the harness only carried six of them. **Proven:** `python3 tools/parity.py tooltip_display` on the build VM — `PASS tooltip_display 211s`, 12 of 12 cases identical to the pinned client, 12 output lines compared. **Not proven:** tooltips of items other than the diamond sword and the stick the cases build, the creative-inventory flag as the game passes it, and what the game draws for a hidden tooltip. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:51 +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#6902
No description provided.