[PR #7102] [MERGED] Port map: client2-009's narration rows cite the narrator #7340

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

📋 Pull Request Information

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

Base: main ← Head: chore/narrator-client2-009-b


📝 Commits (1)

  • b921e99 Port map: client2-009's narration rows cite the narrator

📊 Changes

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

View changed files

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

📄 Description

Three rows of tools/port_map/client2-009.tsv said "Horizon has no narrator". It
exists (crates/horizon-narrator/src/screen.rs, the driver
crates/horizon-client/src/screen_narrator.rs, the glue
crates/horizon-client/src/game/narrator.rs), so each row now names what answers it.

Verdicts corrected:

  • Gui.update -> inline game/narrator.rs::Game::narrate_screen, from skip:other:
    it is called once a turn after the frame's widgets were read and calls
    ScreenNarrator::frame, which runs the narration handleDelayedNarration makes due
    and a new screen's (init's). The rest of Gui.update is frame bookkeeping the game
    loop does elsewhere, so the row names the narration half and says so.
  • AbstractSelectionList.getRowBottom -> inline multiplayer.rs::Multiplayer::lan_found_narrations,
    from skip:other: the only caller is ServerSelectionList.updateNetworkServers, the
    LAN-found announcement. Horizon's port of that announcement tests whether a LAN world
    found since the last call has its row in the list's view and computes the row's top
    and bottom there (row_top + ROW_HEIGHT, commented getRowTop/getRowBottom) before
    multiplayer.lan.server_found.
  • AbstractSelectionList.narrationPriority -> inline screen_narrator.rs::Ctx::priority:
    focused, else hovered (a list's is a row under the mouse), else none, with a container
    list focused through one of its widgets.

Nothing else in the file changed; row count and columns are the same.

PORT_LEDGER_OUT=/tmp/pledger-n2 python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv
149 rows, no problems.

Proven: the ledger here is built from the 26.3 client and server jars at main;
the three classes, methods and Rust fns resolve in it; each note is read from the
function it cites, and getRowBottom's single caller from the ledger's call graph and
that caller's bytecode.

Not proven: no listen to the narration in a running client; these are ledger rows,
not behaviour changes.


🔄 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/7102 **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/narrator-client2-009-b` --- ### 📝 Commits (1) - [`b921e99`](https://github.com/horizon-rust/horizon/commit/b921e998094b9badf82499faeec0c4457c49c6ed) Port map: client2-009's narration rows cite the narrator ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-009.tsv` (+3 -3) </details> ### 📄 Description Three rows of `tools/port_map/client2-009.tsv` said "Horizon has no narrator". It exists (`crates/horizon-narrator/src/screen.rs`, the driver `crates/horizon-client/src/screen_narrator.rs`, the glue `crates/horizon-client/src/game/narrator.rs`), so each row now names what answers it. Verdicts corrected: - `Gui.update` -> `inline game/narrator.rs::Game::narrate_screen`, from `skip:other`: it is called once a turn after the frame's widgets were read and calls `ScreenNarrator::frame`, which runs the narration `handleDelayedNarration` makes due and a new screen's (`init`'s). The rest of `Gui.update` is frame bookkeeping the game loop does elsewhere, so the row names the narration half and says so. - `AbstractSelectionList.getRowBottom` -> `inline multiplayer.rs::Multiplayer::lan_found_narrations`, from `skip:other`: the only caller is `ServerSelectionList.updateNetworkServers`, the LAN-found announcement. Horizon's port of that announcement tests whether a LAN world found since the last call has its row in the list's view and computes the row's top and bottom there (`row_top + ROW_HEIGHT`, commented `getRowTop`/`getRowBottom`) before `multiplayer.lan.server_found`. - `AbstractSelectionList.narrationPriority` -> `inline screen_narrator.rs::Ctx::priority`: focused, else hovered (a list's is a row under the mouse), else none, with a container list focused through one of its widgets. Nothing else in the file changed; row count and columns are the same. ``` PORT_LEDGER_OUT=/tmp/pledger-n2 python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv 149 rows, no problems. ``` **Proven:** the ledger here is built from the 26.3 client and server jars at `main`; the three classes, methods and Rust fns resolve in it; each note is read from the function it cites, and `getRowBottom`'s single caller from the ledger's call graph and that caller's bytecode. **Not proven:** no listen to the narration in a running client; these are ledger rows, not behaviour changes. --- <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:57 +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#7340
No description provided.