[PR #7050] [CLOSED] Clear stale client2-016 rows main already implements #7296

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7050
Author: @MSedgeMC
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: chore/ledger-client2-016


📝 Commits (1)

  • cae54d4 port_map: clear stale client2-016 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/client2-016.tsv (+10 -10)

📄 Description

Ten missing rows in tools/port_map/client2-016.tsv named no port for code the tree has; they now cite it. Two stay as they are.

  • EnchantmentScreen.extractBook -> port crates/horizon-client/src/game/stations.rs::EnchantBook::at: open and flip at the partial tick, drawn as the 3D book by item_render/gui.rs::enchanting_book_pages.
  • EnchantmentScreen.tickBook -> port crates/horizon-client/src/game/stations.rs::EnchantBook::tick: a new item in the slot turns to a new page (LegacyRandom), and the book opens 0.2 a tick while any offer has a cost.
  • MerchantScreen.mouseDragged -> port crates/horizon-client/src/game/trading.rs::Game::merchant_drag: the held scroller follows the cursor while m.dragging; the wheel is Game::merchant_scroll.
  • MinecartCommandBlockEditScreen.populateAndSendPacket -> port crates/horizon-client/src/game/command_minecarts.rs::Game::set_command_minecart: the editor is filled from the cart's own command in Game::open_cart_command_block, and Done sends SetCommandMinecart with the command and trackOutput, then clears the last output.
  • SmithingScreen.containerTick -> port crates/horizon-client/src/game/stations.rs::CyclingSlot::advance: the template icons cycle every 30 ticks with a 4 tick cross-fade, and the icon lists are re-read from the template each tick; drawn in Game::draw_station.
  • SmithingScreen.getTemplateItem -> port crates/horizon-client/src/game/stations.rs::smithing_slot_icons: the base and addition slot icons the template asks for (netherite upgrade: the 11 tools and armour, then the ingot; a trim: the four armour pieces, then the seven materials), EMPTY_TEMPLATE_ICONS for an empty slot.
  • SmithingScreen.updateArmorStandPreview -> port crates/horizon-client/src/game/armor_stands.rs::Game::draw_smithing_armor_stand: the result on a stand without its base plate, arms shown, turned 210 degrees, drawn at scale 25 in the box beside the slots.
  • StonecutterScreen.mouseDragged -> port crates/horizon-client/src/game/stations.rs::stonecutter_drag_offs: the scroller position under the cursor while the bar is held; the wheel is Game::stonecutter_scroll.
  • ClientActivePlayersTooltip.getWidth -> port crates/horizon-client/src/multiplayer.rs::player_list_tooltip: the box around the player count left of the status icon (the count's font width, 8 high, 5 left of the icon) and the hover test on it.
  • ClientActivePlayersTooltip.extractImage -> port crates/horizon-client/src/multiplayer.rs::player_list: the ping sample's names as literal tooltip lines with their section codes styled, then multiplayer.status.and_more for the players the sample leaves out. The sample's head sprites draw as their names, not as images, which the row says.

Still missing: InventoryScreen.containerTick (nothing swaps a survival inventory that is open when the game mode turns creative) and BelowOrAboveWidgetTooltipPositioner.positionTooltip (tooltips are placed at the cursor, not under the widget).

map-check: 79 rows, no problems.

Proven: PORT_LEDGER_OUT=/tmp/pledger-016 python3 tools/port_ledger.py build --jar /tmp/client-26.3.jar --jar /tmp/vanilla-sb/META-INF/versions/26.3/server-26.3.jar && PORT_LEDGER_OUT=/tmp/pledger-016 python3 tools/port_ledger.py map-check tools/port_map/client2-016.tsv -> 79 rows, no problems.
Not proven: no in-game check: the enchanting book, the two scrollers, the cart's command editor, the smithing preview and the server list's player tooltip were read in the code, never opened in a running client.


🔄 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/7050 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `chore/ledger-client2-016` --- ### 📝 Commits (1) - [`cae54d4`](https://github.com/horizon-rust/horizon/commit/cae54d4c32d4d4e5fdaf68e6f5806d57fd7a2104) port_map: clear stale client2-016 rows main already implements ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-016.tsv` (+10 -10) </details> ### 📄 Description Ten `missing` rows in `tools/port_map/client2-016.tsv` named no port for code the tree has; they now cite it. Two stay as they are. - `EnchantmentScreen.extractBook` -> `port` `crates/horizon-client/src/game/stations.rs::EnchantBook::at`: `open` and `flip` at the partial tick, drawn as the 3D book by `item_render/gui.rs::enchanting_book_pages`. - `EnchantmentScreen.tickBook` -> `port` `crates/horizon-client/src/game/stations.rs::EnchantBook::tick`: a new item in the slot turns to a new page (`LegacyRandom`), and the book opens 0.2 a tick while any offer has a cost. - `MerchantScreen.mouseDragged` -> `port` `crates/horizon-client/src/game/trading.rs::Game::merchant_drag`: the held scroller follows the cursor while `m.dragging`; the wheel is `Game::merchant_scroll`. - `MinecartCommandBlockEditScreen.populateAndSendPacket` -> `port` `crates/horizon-client/src/game/command_minecarts.rs::Game::set_command_minecart`: the editor is filled from the cart's own command in `Game::open_cart_command_block`, and Done sends `SetCommandMinecart` with the command and `trackOutput`, then clears the last output. - `SmithingScreen.containerTick` -> `port` `crates/horizon-client/src/game/stations.rs::CyclingSlot::advance`: the template icons cycle every 30 ticks with a 4 tick cross-fade, and the icon lists are re-read from the template each tick; drawn in `Game::draw_station`. - `SmithingScreen.getTemplateItem` -> `port` `crates/horizon-client/src/game/stations.rs::smithing_slot_icons`: the base and addition slot icons the template asks for (netherite upgrade: the 11 tools and armour, then the ingot; a trim: the four armour pieces, then the seven materials), `EMPTY_TEMPLATE_ICONS` for an empty slot. - `SmithingScreen.updateArmorStandPreview` -> `port` `crates/horizon-client/src/game/armor_stands.rs::Game::draw_smithing_armor_stand`: the result on a stand without its base plate, arms shown, turned 210 degrees, drawn at scale 25 in the box beside the slots. - `StonecutterScreen.mouseDragged` -> `port` `crates/horizon-client/src/game/stations.rs::stonecutter_drag_offs`: the scroller position under the cursor while the bar is held; the wheel is `Game::stonecutter_scroll`. - `ClientActivePlayersTooltip.getWidth` -> `port` `crates/horizon-client/src/multiplayer.rs::player_list_tooltip`: the box around the player count left of the status icon (the count's font width, 8 high, 5 left of the icon) and the hover test on it. - `ClientActivePlayersTooltip.extractImage` -> `port` `crates/horizon-client/src/multiplayer.rs::player_list`: the ping sample's names as literal tooltip lines with their section codes styled, then `multiplayer.status.and_more` for the players the sample leaves out. The sample's head sprites draw as their names, not as images, which the row says. Still `missing`: `InventoryScreen.containerTick` (nothing swaps a survival inventory that is open when the game mode turns creative) and `BelowOrAboveWidgetTooltipPositioner.positionTooltip` (tooltips are placed at the cursor, not under the widget). map-check: `79 rows, no problems.` **Proven:** `PORT_LEDGER_OUT=/tmp/pledger-016 python3 tools/port_ledger.py build --jar /tmp/client-26.3.jar --jar /tmp/vanilla-sb/META-INF/versions/26.3/server-26.3.jar && PORT_LEDGER_OUT=/tmp/pledger-016 python3 tools/port_ledger.py map-check tools/port_map/client2-016.tsv` -> `79 rows, no problems.` **Not proven:** no in-game check: the enchanting book, the two scrollers, the cart's command editor, the smithing preview and the server list's player tooltip were read in the code, never opened in a running client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:37:18 +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#7296
No description provided.