[PR #7053] [MERGED] Port ledger: the GUI outline and the enchanting book are ported #7299

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

📋 Pull Request Information

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

Base: main ← Head: fix/port-map-client2-009b


📝 Commits (1)

  • 5e04ef3 Port ledger: the GUI outline and the enchanting book are ported

📊 Changes

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

View changed files

📝 tools/port_map/client2-009.tsv (+2 -2)

📄 Description

Vanilla's GuiGraphicsExtractor.outline draws a one-pixel rectangle and GuiGraphicsExtractor.book draws the open book over an enchanting table.

What was wrong. tools/port_map/client2-009.tsv still listed both as missing, the second with the player-facing note "the enchanting table screen does not draw its open book", which would send the next reader off drawing a book that is already there:

row now points at
GuiGraphicsExtractor.outline game/key_focus.rs::draw_outline, with a gap note: the only one-pixel outline Horizon draws is the keyboard focus ring, in white
GuiGraphicsExtractor.book item_render/gui.rs::draw_enchanting_book, driven by Game::tick_enchanting_book (the book's open amount and page flip)

The other eight missing rows in the file stay as they are: acceptScrolling, withScissor, ScissorStack.containsPoint, Gui.canInterruptScreen, GuiGraphicsExtractor.skin, Hud.getCameraPlayer, AbstractStringWidget.onClick and handleStyleClick are still not ported.

Proven:

  • python3 tools/port_ledger.py build --jar 26.3-client.jar --jar 26.3-server.jar, then python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv -> 149 rows, no problems., which resolves every where to a file and a function in the tree and both rows' vanilla methods in the jar index.

Not proven. No cargo test run: the build VM was suspended (machine_cooldown) for this stretch, so cargo test -q -p horizon-client --lib key_focus and --lib stations were not run here; CI covers them. I did not run the game.


🔄 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/7053 **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:** `fix/port-map-client2-009b` --- ### 📝 Commits (1) - [`5e04ef3`](https://github.com/horizon-rust/horizon/commit/5e04ef39c132eec715db837525495bfed878b43a) Port ledger: the GUI outline and the enchanting book are ported ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-009.tsv` (+2 -2) </details> ### 📄 Description Vanilla's `GuiGraphicsExtractor.outline` draws a one-pixel rectangle and `GuiGraphicsExtractor.book` draws the open book over an enchanting table. **What was wrong.** `tools/port_map/client2-009.tsv` still listed both as `missing`, the second with the player-facing note "the enchanting table screen does not draw its open book", which would send the next reader off drawing a book that is already there: | row | now points at | | --- | --- | | `GuiGraphicsExtractor.outline` | `game/key_focus.rs::draw_outline`, with a gap note: the only one-pixel outline Horizon draws is the keyboard focus ring, in white | | `GuiGraphicsExtractor.book` | `item_render/gui.rs::draw_enchanting_book`, driven by `Game::tick_enchanting_book` (the book's open amount and page flip) | The other eight `missing` rows in the file stay as they are: `acceptScrolling`, `withScissor`, `ScissorStack.containsPoint`, `Gui.canInterruptScreen`, `GuiGraphicsExtractor.skin`, `Hud.getCameraPlayer`, `AbstractStringWidget.onClick` and `handleStyleClick` are still not ported. **Proven**: - `python3 tools/port_ledger.py build --jar 26.3-client.jar --jar 26.3-server.jar`, then `python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv` -> `149 rows, no problems.`, which resolves every `where` to a file and a function in the tree and both rows' vanilla methods in the jar index. **Not proven.** No `cargo test` run: the build VM was suspended (`machine_cooldown`) for this stretch, so `cargo test -q -p horizon-client --lib key_focus` and `--lib stations` were not run here; CI covers them. I did not run the game. --- <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: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#7299
No description provided.