[PR #7092] [MERGED] Client 2-014: narrator rows, and gaps the pause, datapack and fixer screens closed #7330

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-014-y


📝 Commits (1)

  • 54a006d port map: client2-014 rows the narrator and the fixer screens have moved on

📊 Changes

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

View changed files

📝 tools/port_map/client2-014.tsv (+23 -23)

📄 Description

Twenty-three rows of tools/port_map/client2-014.tsv were stale. Fifteen said a screen's narration needed no port because "Horizon has no narrator", which the tree no longer says, and eight described a gap or a reason that has since closed or was wrong. No row is touched that was already true, and map-check is clean before and after (the file's rows all resolve; the staleness was in what they claimed, not in where they pointed).

row before after
ConfirmScreen.getNarrationMessage skip:other, no narrator port crates/horizon-client/src/game/screen_info.rs::confirm
CreateFlatWorldScreen.DetailsList.HeaderEntry.getNarration skip:other, no narrator port crates/horizon-client/src/title/flat.rs::draw_layers
DisconnectedScreen.getNarrationMessage skip:other, no narrator port crates/horizon-client/src/multiplayer.rs::Screen::narration
GenericWaitingScreen.getNarrationMessage skip:other, no narrator port crates/horizon-client/src/title.rs::Title::narration
LevelLoadingScreen.updateNarratedWidget skip:other, no narrator port crates/horizon-client/src/game/screen_info.rs::level_loading
RecoverWorldDataScreen.getNarrationMessage skip:other, no narrator port crates/horizon-client/src/title.rs::Title::narration
Screen.scheduleNarration skip:other, no narrator port crates/horizon-narrator/src/screen.rs::ScreenNarration::schedule
Screen.shouldRunNarration skip:other, no narrator port crates/horizon-client/src/screen_narrator.rs::ScreenNarrator::frame_with
Screen.handleDelayedNarration skip:other, no narrator port crates/horizon-narrator/src/screen.rs::ScreenNarration::due
Screen.runNarration skip:other, no narrator port crates/horizon-narrator/src/screen.rs::ScreenNarration::run
Screen.updateNarratedWidget skip:other, no narrator port crates/horizon-client/src/screen_narrator.rs::update_narrated_widget
Screen.findNarratableWidget skip:other, no narrator port crates/horizon-narrator/src/screen.rs::find_narratable
Screen.updateNarratorStatus skip:other, no narrator port crates/horizon-client/src/screen_narrator.rs::ScreenNarrator::status_changed
FileFixerAbortedScreen.getNarrationMessage skip:other, no narrator missing: the screen does not exist
NoticeWithLinkScreen.getNarrationMessage skip:other, no narrator missing: the screen does not exist
PauseScreen.createPauseMenu icons "inactive" note: the icons are live; only the Mods button is missing
PauseScreen.extractRenderState "no now-playing toast" note: the song is drawn by draw_music_toast
GenericWaitingScreen.createWaitingWithoutButton "no waiting screen blocks input" note: Mode::Backup blocks it
DatapackLoadFailureScreen.init "Horizon loads no data packs" note: packs load; a failed install is only logged
DatapackLoadFailureScreen.extractRenderState "same as init" same correction
FileFixerAbortedScreen.init "no world-fixer cancel flow" note: the progress screen and its Cancel exist; the aborted screen does not
FileFixerAbortedScreen.addButtons own text note: no aborted screen to hold them
FileFixerAbortedScreen.keyPressed own text note: same

The narrator rows: crates/horizon-narrator (SAPI on Windows, flite on Linux, NSSpeechSynthesizer on macOS) and crates/horizon-client/src/screen_narrator.rs landed, and the screens record their narration as they draw. Each row now cites the function that does its job, and the ones that had no counterpart in a screen name a screen that Horizon does not have instead of the narrator. screen_info.rs::confirm is documented as ConfirmScreen.getNarrationMessage, multiplayer.rs::Screen::narration's disconnected arm joins disconnect.lost with the reason, title.rs::Title::narration's Mode::Recover and Mode::Backup join the title and message the way those screens do, screen_info.rs::level_loading says loading.progress in the title's place and repeats it every 2 s, and the five Screen/narrator functions are documented against the vanilla method each ports (find_narratable against findNarratableWidget, update_narrated_widget against updateNarratedWidget, due against handleDelayedNarration's test, run against runNarration, status_changed against updateNarratorStatus).

The rest:

  • PauseScreen.createPauseMenu: icon_active makes report bugs, feedback and player reporting (and friends, when the list is shown) active; nothing in pause_buttons or the icon row is a Mods button, so that half of the note stays.
  • PauseScreen.extractRenderState: the now-playing song on the pause menu comes from music.rs::Game::draw_music_toast, which draws it when the screen is paused and the menu is up; draw_pause_menu itself draws no toast, and no draft-report badge exists anywhere.
  • GenericWaitingScreen.createWaitingWithoutButton: Title::start_backup runs the backup on its own thread and switches to Mode::Backup, whose button list is empty, so the waiting screen does hold the input until the backup ends.
  • DatapackLoadFailureScreen: Horizon installs data packs for a new world and reads them back when they change, so "loads no data packs" is wrong; a pack that fails to install is logged (game.rs:12109-12111) and the world opens with the packs it has. There is still no failure screen, so both rows stay missing.
  • FileFixerAbortedScreen: the upgrade progress screen exists (level_loading.rs::draw_file_fixer with its Cancel button, file_fixer_cancel), and cancelling returns to the title (game.rs:19411-19416); there is no aborted screen with Back and Report Bug, so its rows stay missing for that reason.

map-check: 150 rows, no problems.

Proven: every new file::fn resolves and map-check reports the file clean. git grep -n "fn confirm(" -- crates/horizon-client/src/game/screen_info.rs finds the ConfirmScreen.getNarrationMessage port with that citation in its doc; multiplayer.rs::Screen::narration's Self::Disconnected arm joins disconnect.lost and the reason; title.rs::Title::narration has Mode::Recover (recover_world.title, recover_world.message) and Mode::Backup (selectWorld.waitingForBackup.title/.message); screen_info.rs::level_loading sets loading.progress and repeat_every(2000), and screen_narrator.rs's tests read that narration back (Loading 0%, silent at 1500 ms, Loading 50% after 2001 ms); find_narratable, ScreenNarration::due, ScreenNarration::run, ScreenNarration::schedule, update_narrated_widget, ScreenNarrator::status_changed and ScreenNarrator::frame_with all carry the vanilla method in their doc. icon_active returns true for the report bugs, feedback and player reporting icons; draw_music_toast draws the song while the screen is Paused and the pause menu is up; Title::start_backup sets Mode::Backup and Mode::Backup builds no buttons; datapack::install is called when a create-world pack folder exists and only logs its error; level_loading::draw_file_fixer draws Cancel and game.rs:19411-19416 leaves for the title when the upgrade was cancelled.

Not proven: the vanilla side was read through the ledger's method index and callee lists plus the ports' own doc comments and translation keys, not decompiled 26.3 sources, which this box does not have; in particular whether vanilla's GenericWaitingScreen.getNarrationMessage reads the title alone (Horizon joins the title and its message) was not checked against the source. Rows left alone on purpose: the seven FriendToast rows and the other skip:service social rows (Horizon's friends are LAN invites and show no toasts, but the service behind vanilla's friend toasts still has no counterpart), OutOfMemoryScreen.init, PresetFlatWorldScreen.PresetsList.keyPressed and the other unsure rows, LoadingOverlay.isReadyToFadeOut (no fade exists), and the narration rows' siblings that were already true.


🔄 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/7092 **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/ledger-client2-014-y` --- ### 📝 Commits (1) - [`54a006d`](https://github.com/horizon-rust/horizon/commit/54a006d4ef6cb2c671bc311d71f28af452d81c6f) port map: client2-014 rows the narrator and the fixer screens have moved on ### 📊 Changes **1 file changed** (+23 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-014.tsv` (+23 -23) </details> ### 📄 Description Twenty-three rows of `tools/port_map/client2-014.tsv` were stale. Fifteen said a screen's narration needed no port because "Horizon has no narrator", which the tree no longer says, and eight described a gap or a reason that has since closed or was wrong. No row is touched that was already true, and `map-check` is clean before and after (the file's rows all resolve; the staleness was in what they claimed, not in where they pointed). | row | before | after | | --- | --- | --- | | `ConfirmScreen.getNarrationMessage` | `skip:other`, no narrator | `port` `crates/horizon-client/src/game/screen_info.rs::confirm` | | `CreateFlatWorldScreen.DetailsList.HeaderEntry.getNarration` | `skip:other`, no narrator | `port` `crates/horizon-client/src/title/flat.rs::draw_layers` | | `DisconnectedScreen.getNarrationMessage` | `skip:other`, no narrator | `port` `crates/horizon-client/src/multiplayer.rs::Screen::narration` | | `GenericWaitingScreen.getNarrationMessage` | `skip:other`, no narrator | `port` `crates/horizon-client/src/title.rs::Title::narration` | | `LevelLoadingScreen.updateNarratedWidget` | `skip:other`, no narrator | `port` `crates/horizon-client/src/game/screen_info.rs::level_loading` | | `RecoverWorldDataScreen.getNarrationMessage` | `skip:other`, no narrator | `port` `crates/horizon-client/src/title.rs::Title::narration` | | `Screen.scheduleNarration` | `skip:other`, no narrator | `port` `crates/horizon-narrator/src/screen.rs::ScreenNarration::schedule` | | `Screen.shouldRunNarration` | `skip:other`, no narrator | `port` `crates/horizon-client/src/screen_narrator.rs::ScreenNarrator::frame_with` | | `Screen.handleDelayedNarration` | `skip:other`, no narrator | `port` `crates/horizon-narrator/src/screen.rs::ScreenNarration::due` | | `Screen.runNarration` | `skip:other`, no narrator | `port` `crates/horizon-narrator/src/screen.rs::ScreenNarration::run` | | `Screen.updateNarratedWidget` | `skip:other`, no narrator | `port` `crates/horizon-client/src/screen_narrator.rs::update_narrated_widget` | | `Screen.findNarratableWidget` | `skip:other`, no narrator | `port` `crates/horizon-narrator/src/screen.rs::find_narratable` | | `Screen.updateNarratorStatus` | `skip:other`, no narrator | `port` `crates/horizon-client/src/screen_narrator.rs::ScreenNarrator::status_changed` | | `FileFixerAbortedScreen.getNarrationMessage` | `skip:other`, no narrator | `missing`: the screen does not exist | | `NoticeWithLinkScreen.getNarrationMessage` | `skip:other`, no narrator | `missing`: the screen does not exist | | `PauseScreen.createPauseMenu` | icons "inactive" | note: the icons are live; only the Mods button is missing | | `PauseScreen.extractRenderState` | "no now-playing toast" | note: the song is drawn by `draw_music_toast` | | `GenericWaitingScreen.createWaitingWithoutButton` | "no waiting screen blocks input" | note: `Mode::Backup` blocks it | | `DatapackLoadFailureScreen.init` | "Horizon loads no data packs" | note: packs load; a failed install is only logged | | `DatapackLoadFailureScreen.extractRenderState` | "same as init" | same correction | | `FileFixerAbortedScreen.init` | "no world-fixer cancel flow" | note: the progress screen and its Cancel exist; the aborted screen does not | | `FileFixerAbortedScreen.addButtons` | own text | note: no aborted screen to hold them | | `FileFixerAbortedScreen.keyPressed` | own text | note: same | The narrator rows: `crates/horizon-narrator` (SAPI on Windows, flite on Linux, NSSpeechSynthesizer on macOS) and `crates/horizon-client/src/screen_narrator.rs` landed, and the screens record their narration as they draw. Each row now cites the function that does its job, and the ones that had no counterpart in a screen name a screen that Horizon does not have instead of the narrator. `screen_info.rs::confirm` is documented as `ConfirmScreen.getNarrationMessage`, `multiplayer.rs::Screen::narration`'s disconnected arm joins `disconnect.lost` with the reason, `title.rs::Title::narration`'s `Mode::Recover` and `Mode::Backup` join the title and message the way those screens do, `screen_info.rs::level_loading` says `loading.progress` in the title's place and repeats it every 2 s, and the five `Screen`/narrator functions are documented against the vanilla method each ports (`find_narratable` against `findNarratableWidget`, `update_narrated_widget` against `updateNarratedWidget`, `due` against `handleDelayedNarration`'s test, `run` against `runNarration`, `status_changed` against `updateNarratorStatus`). The rest: - `PauseScreen.createPauseMenu`: `icon_active` makes report bugs, feedback and player reporting (and friends, when the list is shown) active; nothing in `pause_buttons` or the icon row is a Mods button, so that half of the note stays. - `PauseScreen.extractRenderState`: the now-playing song on the pause menu comes from `music.rs::Game::draw_music_toast`, which draws it when the screen is paused and the menu is up; `draw_pause_menu` itself draws no toast, and no draft-report badge exists anywhere. - `GenericWaitingScreen.createWaitingWithoutButton`: `Title::start_backup` runs the backup on its own thread and switches to `Mode::Backup`, whose button list is empty, so the waiting screen does hold the input until the backup ends. - `DatapackLoadFailureScreen`: Horizon installs data packs for a new world and reads them back when they change, so "loads no data packs" is wrong; a pack that fails to install is logged (`game.rs:12109-12111`) and the world opens with the packs it has. There is still no failure screen, so both rows stay `missing`. - `FileFixerAbortedScreen`: the upgrade progress screen exists (`level_loading.rs::draw_file_fixer` with its Cancel button, `file_fixer_cancel`), and cancelling returns to the title (`game.rs:19411-19416`); there is no aborted screen with Back and Report Bug, so its rows stay `missing` for that reason. `map-check`: `150 rows, no problems.` **Proven:** every new `file::fn` resolves and `map-check` reports the file clean. `git grep -n "fn confirm(" -- crates/horizon-client/src/game/screen_info.rs` finds the `ConfirmScreen.getNarrationMessage` port with that citation in its doc; `multiplayer.rs::Screen::narration`'s `Self::Disconnected` arm joins `disconnect.lost` and the reason; `title.rs::Title::narration` has `Mode::Recover` (`recover_world.title`, `recover_world.message`) and `Mode::Backup` (`selectWorld.waitingForBackup.title`/`.message`); `screen_info.rs::level_loading` sets `loading.progress` and `repeat_every(2000)`, and `screen_narrator.rs`'s tests read that narration back (`Loading 0%`, silent at 1500 ms, `Loading 50%` after 2001 ms); `find_narratable`, `ScreenNarration::due`, `ScreenNarration::run`, `ScreenNarration::schedule`, `update_narrated_widget`, `ScreenNarrator::status_changed` and `ScreenNarrator::frame_with` all carry the vanilla method in their doc. `icon_active` returns true for the report bugs, feedback and player reporting icons; `draw_music_toast` draws the song while the screen is `Paused` and the pause menu is up; `Title::start_backup` sets `Mode::Backup` and `Mode::Backup` builds no buttons; `datapack::install` is called when a create-world pack folder exists and only logs its error; `level_loading::draw_file_fixer` draws Cancel and `game.rs:19411-19416` leaves for the title when the upgrade was cancelled. **Not proven:** the vanilla side was read through the ledger's method index and callee lists plus the ports' own doc comments and translation keys, not decompiled 26.3 sources, which this box does not have; in particular whether vanilla's `GenericWaitingScreen.getNarrationMessage` reads the title alone (Horizon joins the title and its message) was not checked against the source. Rows left alone on purpose: the seven `FriendToast` rows and the other `skip:service` social rows (Horizon's friends are LAN invites and show no toasts, but the service behind vanilla's friend toasts still has no counterpart), `OutOfMemoryScreen.init`, `PresetFlatWorldScreen.PresetsList.keyPressed` and the other `unsure` rows, `LoadingOverlay.isReadyToFadeOut` (no fade exists), and the narration rows' siblings that were already true. --- <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:47 +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#7330
No description provided.