[PR #7414] [MERGED] Port map: point GhostSlots.extractTooltip at ghost_stack #7589

Closed
opened 2026-11-03 07:20:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: chore/audit-client2-018


📝 Commits (1)

  • f915616 Port map: point GhostSlots.extractTooltip at ghost_stack

📊 Changes

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

View changed files

📝 tools/port_map/client2-018.tsv (+1 -1)

📄 Description

GhostSlots.extractTooltip was pointed at Game::draw_ghost, which does not implement it: that function builds the ghost views and paints them (GhostSlots.extractRenderState), and never draws a tooltip.

The stack the vanilla method returns is Game::ghost_stack: it gives the stack the ghost slot is currently cycling through, and draw_slot_tooltip (crates/horizon-client/src/game/stations.rs) asks it before the slot's own stack, so a ghost's tooltip wins over the item under it — which is the order RecipeBookComponent.extractTooltip describes.

Only the citation changes; the verdict stays port.

Checked with the rebuilt ledger:

PORT_LEDGER_OUT=/tmp/led-audit python3 tools/port_ledger.py map-check tools/port_map/client2-018.tsv
65 rows, no problems.

One note for the row below, left alone here: RecipeBookComponent.extractTooltip still carries "gap: player: no tooltip for ghost slots (GhostSlots.extractTooltip)", which this port makes stale.


🔄 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/7414 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/audit-client2-018` --- ### 📝 Commits (1) - [`f915616`](https://github.com/horizon-rust/horizon/commit/f915616c37e5696573a5cdba35eceecd6741b056) Port map: point GhostSlots.extractTooltip at ghost_stack ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-018.tsv` (+1 -1) </details> ### 📄 Description `GhostSlots.extractTooltip` was pointed at `Game::draw_ghost`, which does not implement it: that function builds the ghost views and paints them (`GhostSlots.extractRenderState`), and never draws a tooltip. The stack the vanilla method returns is `Game::ghost_stack`: it gives the stack the ghost slot is currently cycling through, and `draw_slot_tooltip` (`crates/horizon-client/src/game/stations.rs`) asks it before the slot's own stack, so a ghost's tooltip wins over the item under it — which is the order `RecipeBookComponent.extractTooltip` describes. Only the citation changes; the verdict stays `port`. Checked with the rebuilt ledger: ``` PORT_LEDGER_OUT=/tmp/led-audit python3 tools/port_ledger.py map-check tools/port_map/client2-018.tsv 65 rows, no problems. ``` One note for the row below, left alone here: `RecipeBookComponent.extractTooltip` still carries "gap: player: no tooltip for ghost slots (GhostSlots.extractTooltip)", which this port makes stale. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:22 +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#7589
No description provided.