[PR #7081] [MERGED] Client 2-012: a moved IME citation, an unreadable one, and gaps the tree closed #7320

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 60be9f1 port map: client2-012 rows whose citation moved and gaps that closed
  • e4e5eea port map: client2-012 friend toasts are the request service's, not a missing friends system

📊 Changes

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

View changed files

📝 tools/port_map/client2-012.tsv (+17 -17)

📄 Description

Seventeen rows of tools/port_map/client2-012.tsv were stale. Three map-check reported outright (a citation into a file the function has left, and two citations that name two functions at once), seven described a gap or a reason the tree no longer has, and seven more gave a reason the friends work has moved on from. No other row is touched.

row before after
ContainerEventHandler.preeditUpdated port game.rs::ime_preedit port crates/horizon-client/src/game/ime.rs::ime_preedit
ContainerEventHandler.nextFocusPath port key_focus.rs::nav_of + act port crates/horizon-client/src/game/key_focus.rs::act
ContainerEventHandler.handleTabNavigation port key_focus.rs::tab_order + tab_step port crates/horizon-client/src/game/key_focus.rs::tab_step
TabNavigationBar.narrationPriority skip:other "Horizon has no narrator" inline crates/horizon-client/src/screen_narrator.rs::Ctx::priority
TabNavigationBar.updateWidgetNarration skip:other "Horizon has no narrator" port crates/horizon-client/src/screen_narrator.rs::narrate
TabNavigationBar.narrateListElementPosition skip:other "Horizon has no narrator" inline crates/horizon-client/src/screen_narrator.rs::narrate
TabNavigationBar.setTabActiveState missing inline crates/horizon-client/src/game/stats_screen.rs::Game::stats_tab_active
SystemToast.onFileDropFailure missing, "takes no dropped files" missing, no failure toast for a dropped non-pack (unchanged verdict)
TutorialToast.update missing inline crates/horizon-client/src/game/tutorial.rs::Game::draw_tutorial_toasts
TutorialToast.extractRenderState missing port crates/horizon-client/src/game/tutorial.rs::Game::draw_tutorial_toasts
FriendToast.update skip:service, "no friends system" skip:service, the request service's toast (unchanged verdict)
FriendToast.extractRenderState skip:service, "no friends system" skip:service, no friend toast is drawn
FriendToast.add skip:service, "no friends system" skip:service, no toast queue entry
FriendToast.showFriendRequestSent skip:service, "no friends system" skip:service, an invite code is copied instead
FriendToast.showFriendRequestReceived skip:service, "no friends system" skip:service, a friend joins with the code
FriendToast.showFriendRequestAccepted skip:service, "no friends system" skip:service, the code is the whole invitation
FriendToast.showFriendAdded skip:service, "no friends system" skip:service, one world is shared by code
  • ime_preedit moved out of the game.rs module root into crates/horizon-client/src/game/ime.rs, where WindowEvent::Ime(Preedit) still feeds the focused field's composition (game.rs:17545-17547 calls it).
  • nextFocusPath and handleTabNavigation each cited two functions joined by +, which map-check reads as one function name and reports as no fn. Both halves exist, so each row now cites the function that does the job: act is the nav-key dispatcher (pad_menu.rs:1088, startup_menu.rs:776) whose Tab arm calls tab_step, which is the tab step the second row is about (act's Nav::Tab arm; tab_step is also the opening focus at pad_menu.rs:236, startup_menu.rs:160).
  • crates/horizon-narrator and crates/horizon-client/src/screen_narrator.rs landed with the screen narrator, so "Horizon has no narrator" no longer holds anywhere in this file. The create-world tab row is recorded as a tabs list by Title::draw_create, and screen_narrator::narrate's ListKind::Tabs branch produces exactly the three rows' behaviour: gui.narrate.tab for the tab under the mouse else the open one plus narration.tab_navigation.usage while focused (updateWidgetNarration), narrator.position.tab with the index and count (narrateListElementPosition), and Ctx::priority's focused/hovered/none (narrationPriority). The row still cannot take keyboard focus, so its notes say so.
  • setTabActiveState: stats_screen.rs's stats_tab_active makes the Items and Mobs tabs active only while their lists have rows, stats_click refuses an inactive tab (stats_screen.rs:582) and the label draws with the inactive flag (stats_screen.rs:317-337). Vanilla's two disabled Stats tabs are what the row said was missing.
  • SystemToast.onFileDropFailure stays missing, but not because Horizon takes no drops: title.rs::Title::drop_file copies a dropped pack into the create-world pack folder and only logs a file that is not one, so the failure toast is still absent.
  • Horizon has friends: crates/horizon-friends hosts an invite code for the open world, and the pause menu's Friends icon (FRIENDS_ICON) and friends_screen.rs are its screen, with game/friends.rs printing the code and its "Play with Friends" hint. What it does not have is the friend-request service vanilla's FriendToast speaks for, or any friend toast: the seven rows keep skip:service and now say which of those it is.
  • The tutorial toasts exist: Game::draw_tutorial_toasts keeps the wanted toast, slides the unwanted one out and drops it, feeds the hint's progress into the smoothing, and draws the gui/sprites/toast/tutorial nine slice with its icon, lines and 154 px progress bar.

map-check: 150 rows, no problems.

Proven: each new file::fn resolves in the tree at upstream/main and map-check reports the file clean (it reported the three old citations before the change). git ls-files | grep -i friend gives crates/horizon-friends/, crates/horizon-client/src/friends_screen.rs and game/friends.rs, and git grep -n toast in those files finds nothing, so the friends rows' new notes match the tree. git grep -n "fn ime_preedit" -- crates finds it in crates/horizon-client/src/game/ime.rs; act and tab_step are in crates/horizon-client/src/game/key_focus.rs with the Nav::Tab arm between them; screen_narrator.rs's narrate ListKind::Tabs branch carries narrator.position.tab and narration.tab_navigation.usage, and Ctx::priority returns Focused/Hovered/None; stats_tab_active gates both the click and the label at the cited lines; Title::drop_file logs instead of toasting; draw_tutorial_toasts draws the tutorial toast at the sizes and colours the note states.

Not proven: the vanilla side was read through the ledger's method index and callee lists plus the port's own translation keys and sprite names, not decompiled 26.3 sources, which this box does not have; TutorialToast.update's clamp is taken from its bytecode callees (hide, Mth.clampedLerp) rather than a source read. Rows that stay missing (setFocused, nextFocusPath on the tab row, setTabTooltip, keyPressed, getNextTabIndex, SystemToast.height, sprite/player glyph providers, the bitmap provider's two checks, FontSet.hasFishyAdvance) were re-read and left alone: the tab row registers no focus target, no Ctrl+number handling exists, and no sprite or player-head glyph provider is parsed.


🔄 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/7081 **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-012-y` --- ### 📝 Commits (2) - [`60be9f1`](https://github.com/horizon-rust/horizon/commit/60be9f1816351662ee7b9cc0b48259ca08fbc065) port map: client2-012 rows whose citation moved and gaps that closed - [`e4e5eea`](https://github.com/horizon-rust/horizon/commit/e4e5eeab7cb6df98dfbe3f8f8975cb97d588608b) port map: client2-012 friend toasts are the request service's, not a missing friends system ### 📊 Changes **1 file changed** (+17 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-012.tsv` (+17 -17) </details> ### 📄 Description Seventeen rows of `tools/port_map/client2-012.tsv` were stale. Three `map-check` reported outright (a citation into a file the function has left, and two citations that name two functions at once), seven described a gap or a reason the tree no longer has, and seven more gave a reason the friends work has moved on from. No other row is touched. | row | before | after | | --- | --- | --- | | `ContainerEventHandler.preeditUpdated` | `port` `game.rs::ime_preedit` | `port` `crates/horizon-client/src/game/ime.rs::ime_preedit` | | `ContainerEventHandler.nextFocusPath` | `port` `key_focus.rs::nav_of + act` | `port` `crates/horizon-client/src/game/key_focus.rs::act` | | `ContainerEventHandler.handleTabNavigation` | `port` `key_focus.rs::tab_order + tab_step` | `port` `crates/horizon-client/src/game/key_focus.rs::tab_step` | | `TabNavigationBar.narrationPriority` | `skip:other` "Horizon has no narrator" | `inline` `crates/horizon-client/src/screen_narrator.rs::Ctx::priority` | | `TabNavigationBar.updateWidgetNarration` | `skip:other` "Horizon has no narrator" | `port` `crates/horizon-client/src/screen_narrator.rs::narrate` | | `TabNavigationBar.narrateListElementPosition` | `skip:other` "Horizon has no narrator" | `inline` `crates/horizon-client/src/screen_narrator.rs::narrate` | | `TabNavigationBar.setTabActiveState` | `missing` | `inline` `crates/horizon-client/src/game/stats_screen.rs::Game::stats_tab_active` | | `SystemToast.onFileDropFailure` | `missing`, "takes no dropped files" | `missing`, no failure toast for a dropped non-pack (unchanged verdict) | | `TutorialToast.update` | `missing` | `inline` `crates/horizon-client/src/game/tutorial.rs::Game::draw_tutorial_toasts` | | `TutorialToast.extractRenderState` | `missing` | `port` `crates/horizon-client/src/game/tutorial.rs::Game::draw_tutorial_toasts` | | `FriendToast.update` | `skip:service`, "no friends system" | `skip:service`, the request service's toast (unchanged verdict) | | `FriendToast.extractRenderState` | `skip:service`, "no friends system" | `skip:service`, no friend toast is drawn | | `FriendToast.add` | `skip:service`, "no friends system" | `skip:service`, no toast queue entry | | `FriendToast.showFriendRequestSent` | `skip:service`, "no friends system" | `skip:service`, an invite code is copied instead | | `FriendToast.showFriendRequestReceived` | `skip:service`, "no friends system" | `skip:service`, a friend joins with the code | | `FriendToast.showFriendRequestAccepted` | `skip:service`, "no friends system" | `skip:service`, the code is the whole invitation | | `FriendToast.showFriendAdded` | `skip:service`, "no friends system" | `skip:service`, one world is shared by code | - `ime_preedit` moved out of the `game.rs` module root into `crates/horizon-client/src/game/ime.rs`, where `WindowEvent::Ime(Preedit)` still feeds the focused field's composition (`game.rs:17545-17547` calls it). - `nextFocusPath` and `handleTabNavigation` each cited two functions joined by `+`, which `map-check` reads as one function name and reports as `no fn`. Both halves exist, so each row now cites the function that does the job: `act` is the nav-key dispatcher (`pad_menu.rs:1088`, `startup_menu.rs:776`) whose `Tab` arm calls `tab_step`, which is the tab step the second row is about (`act`'s `Nav::Tab` arm; `tab_step` is also the opening focus at `pad_menu.rs:236`, `startup_menu.rs:160`). - `crates/horizon-narrator` and `crates/horizon-client/src/screen_narrator.rs` landed with the screen narrator, so "Horizon has no narrator" no longer holds anywhere in this file. The create-world tab row is recorded as a tabs list by `Title::draw_create`, and `screen_narrator::narrate`'s `ListKind::Tabs` branch produces exactly the three rows' behaviour: `gui.narrate.tab` for the tab under the mouse else the open one plus `narration.tab_navigation.usage` while focused (`updateWidgetNarration`), `narrator.position.tab` with the index and count (`narrateListElementPosition`), and `Ctx::priority`'s focused/hovered/none (`narrationPriority`). The row still cannot take keyboard focus, so its notes say so. - `setTabActiveState`: `stats_screen.rs`'s `stats_tab_active` makes the Items and Mobs tabs active only while their lists have rows, `stats_click` refuses an inactive tab (`stats_screen.rs:582`) and the label draws with the inactive flag (`stats_screen.rs:317-337`). Vanilla's two disabled Stats tabs are what the row said was missing. - `SystemToast.onFileDropFailure` stays `missing`, but not because Horizon takes no drops: `title.rs::Title::drop_file` copies a dropped pack into the create-world pack folder and only logs a file that is not one, so the failure toast is still absent. - Horizon has friends: `crates/horizon-friends` hosts an invite code for the open world, and the pause menu's Friends icon (`FRIENDS_ICON`) and `friends_screen.rs` are its screen, with `game/friends.rs` printing the code and its "Play with Friends" hint. What it does not have is the friend-request service vanilla's `FriendToast` speaks for, or any friend toast: the seven rows keep `skip:service` and now say which of those it is. - The tutorial toasts exist: `Game::draw_tutorial_toasts` keeps the wanted toast, slides the unwanted one out and drops it, feeds the hint's progress into the smoothing, and draws the `gui/sprites/toast/tutorial` nine slice with its icon, lines and 154 px progress bar. `map-check`: `150 rows, no problems.` **Proven:** each new `file::fn` resolves in the tree at `upstream/main` and `map-check` reports the file clean (it reported the three old citations before the change). `git ls-files | grep -i friend` gives `crates/horizon-friends/`, `crates/horizon-client/src/friends_screen.rs` and `game/friends.rs`, and `git grep -n toast` in those files finds nothing, so the friends rows' new notes match the tree. `git grep -n "fn ime_preedit" -- crates` finds it in `crates/horizon-client/src/game/ime.rs`; `act` and `tab_step` are in `crates/horizon-client/src/game/key_focus.rs` with the `Nav::Tab` arm between them; `screen_narrator.rs`'s `narrate` `ListKind::Tabs` branch carries `narrator.position.tab` and `narration.tab_navigation.usage`, and `Ctx::priority` returns Focused/Hovered/None; `stats_tab_active` gates both the click and the label at the cited lines; `Title::drop_file` logs instead of toasting; `draw_tutorial_toasts` draws the tutorial toast at the sizes and colours the note states. **Not proven:** the vanilla side was read through the ledger's method index and callee lists plus the port's own translation keys and sprite names, not decompiled 26.3 sources, which this box does not have; `TutorialToast.update`'s clamp is taken from its bytecode callees (`hide`, `Mth.clampedLerp`) rather than a source read. Rows that stay `missing` (`setFocused`, `nextFocusPath` on the tab row, `setTabTooltip`, `keyPressed`, `getNextTabIndex`, `SystemToast.height`, sprite/player glyph providers, the bitmap provider's two checks, `FontSet.hasFishyAdvance`) were re-read and left alone: the tab row registers no focus target, no Ctrl+number handling exists, and no sprite or player-head glyph provider is parsed. --- <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:40 +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#7320
No description provided.