[PR #6946] [MERGED] Port ledger: eight screen and widget methods are ported, not missing #7220

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

📋 Pull Request Information

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

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


📝 Commits (1)

  • 6031f1a Port ledger: eight screen and widget methods are ported, not missing

📊 Changes

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

View changed files

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

📄 Description

Vanilla's widgets take keyboard input through Screen.keyPressed and nextFocusPath (AbstractButton.keyPressed presses on Enter/Space, AbstractSliderButton.keyPressed moves a slider once Tab or Enter lets it, AbstractSelectionList.nextEntry steps the selection), Gui.buildInitialScreens/addInitialScreens queue the ban notices and the accessibility onboarding before the title, and Hud.onDisconnected resets the HUD when a world is left.

What was wrong. tools/port_map/client2-009.tsv still listed all eight as missing, from before #4638 (27f948813, "Navigate menus with Tab, the arrows and Enter as vanilla does"). Anyone reading the ledger to find unported screen work would have started on behaviour that already exists:

row now points at
Gui.buildInitialScreens title.rs::Title::next_ban_notice (the queue ban_notice::initial_notices fills from Title::poll_account, popped notice by notice, the title last)
Gui.addInitialScreens ban_notice.rs::initial_notices (vanilla's order; the onboarding is queued by Title::start_onboarding)
Hud.onDisconnected game/remote.rs::Game::hud_disconnected (tab list, boss bars, toasts, debug charts, titles; chat kept, as ChatComponent.storeState does)
AbstractButton.keyPressed game/key_focus.rs::act (Enter, Space and keypad Enter are Nav::Select → Act::Press)
AbstractSelectionList.nextEntry game/key_focus.rs::act (an arrow steps a Kind::Row, and the list selects the row it lands on: Title::focus_world_row; gap noted: Page Up/Page Down do nothing)
AbstractSliderButton.setFocused game/key_focus.rs::slider_edit_on_focus (arrows change the value only when the mouse or Tab focused it)
AbstractSliderButton.keyPressed game/key_focus.rs::act (Act::Nudge / Act::ToggleSlider)
AbstractWidget.nextFocusPath game/key_focus.rs::act with gamepad::focus_step_rect and tab_step (focus is per screen in Horizon, which the note says)

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

Proven (on the build box, ~/pushrun.py ~/horizon-worktrees/pm-client2009):

  • each corrected row's where resolves to a file and a function that exist: a script over the eight rows printed fn_in_file=True for all eight with the file present;
  • the vanilla methods are real: javap -p on the 26.3 jar found Gui.buildInitialScreens, Gui.addInitialScreens, Hud.onDisconnected, AbstractButton.keyPressed, AbstractSelectionList.nextEntry, AbstractSliderButton.setFocused, AbstractSliderButton.keyPressed, AbstractWidget.nextFocusPath (1 occurrence each; nextEntry 3 overloads);
  • the behaviour these rows now point at is pinned by tests: cargo test -q -p horizon-client --lib key_focus -> 12 passed (includes select_presses_buttons_and_toggles_sliders, slider_arrows_change_the_value_only_once_allowed), cargo test -q -p horizon-client-lib --lib world_list -> 4 passed, cargo test -q -p horizon-client-lib --lib ban_notice -> 1 passed.

Not proven. python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv cannot answer here: the box has the 26.3 jar but no decompiled sources, so the build's class index is empty and the check reports no class Gui, no class AbstractWidget and so on for every row in the file, including rows this PR does not touch. 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/6946 **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-009` --- ### 📝 Commits (1) - [`6031f1a`](https://github.com/horizon-rust/horizon/commit/6031f1a85b980f7c8bcc13d40f61c9be73988b17) Port ledger: eight screen and widget methods are ported, not missing ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-009.tsv` (+8 -8) </details> ### 📄 Description Vanilla's widgets take keyboard input through `Screen.keyPressed` and `nextFocusPath` (`AbstractButton.keyPressed` presses on Enter/Space, `AbstractSliderButton.keyPressed` moves a slider once Tab or Enter lets it, `AbstractSelectionList.nextEntry` steps the selection), `Gui.buildInitialScreens`/`addInitialScreens` queue the ban notices and the accessibility onboarding before the title, and `Hud.onDisconnected` resets the HUD when a world is left. **What was wrong.** `tools/port_map/client2-009.tsv` still listed all eight as `missing`, from before #4638 (`27f948813`, "Navigate menus with Tab, the arrows and Enter as vanilla does"). Anyone reading the ledger to find unported screen work would have started on behaviour that already exists: | row | now points at | | --- | --- | | `Gui.buildInitialScreens` | `title.rs::Title::next_ban_notice` (the queue `ban_notice::initial_notices` fills from `Title::poll_account`, popped notice by notice, the title last) | | `Gui.addInitialScreens` | `ban_notice.rs::initial_notices` (vanilla's order; the onboarding is queued by `Title::start_onboarding`) | | `Hud.onDisconnected` | `game/remote.rs::Game::hud_disconnected` (tab list, boss bars, toasts, debug charts, titles; chat kept, as `ChatComponent.storeState` does) | | `AbstractButton.keyPressed` | `game/key_focus.rs::act` (Enter, Space and keypad Enter are `Nav::Select` → `Act::Press`) | | `AbstractSelectionList.nextEntry` | `game/key_focus.rs::act` (an arrow steps a `Kind::Row`, and the list selects the row it lands on: `Title::focus_world_row`; gap noted: Page Up/Page Down do nothing) | | `AbstractSliderButton.setFocused` | `game/key_focus.rs::slider_edit_on_focus` (arrows change the value only when the mouse or Tab focused it) | | `AbstractSliderButton.keyPressed` | `game/key_focus.rs::act` (`Act::Nudge` / `Act::ToggleSlider`) | | `AbstractWidget.nextFocusPath` | `game/key_focus.rs::act` with `gamepad::focus_step_rect` and `tab_step` (focus is per screen in Horizon, which the note says) | The other ten `missing` rows in the file stay as they are: `acceptScrolling`, `withScissor`, `ScissorStack.containsPoint`, `outline`, `skin`, `book`, `Hud.getCameraPlayer`, `canInterruptScreen`, `AbstractStringWidget.onClick` and `handleStyleClick` are still not ported. **Proven** (on the build box, `~/pushrun.py ~/horizon-worktrees/pm-client2009`): - each corrected row's `where` resolves to a file and a function that exist: a script over the eight rows printed `fn_in_file=True` for all eight with the file present; - the vanilla methods are real: `javap -p` on the 26.3 jar found `Gui.buildInitialScreens`, `Gui.addInitialScreens`, `Hud.onDisconnected`, `AbstractButton.keyPressed`, `AbstractSelectionList.nextEntry`, `AbstractSliderButton.setFocused`, `AbstractSliderButton.keyPressed`, `AbstractWidget.nextFocusPath` (1 occurrence each; nextEntry 3 overloads); - the behaviour these rows now point at is pinned by tests: `cargo test -q -p horizon-client --lib key_focus` -> 12 passed (includes `select_presses_buttons_and_toggles_sliders`, `slider_arrows_change_the_value_only_once_allowed`), `cargo test -q -p horizon-client-lib --lib world_list` -> 4 passed, `cargo test -q -p horizon-client-lib --lib ban_notice` -> 1 passed. **Not proven.** `python3 tools/port_ledger.py map-check tools/port_map/client2-009.tsv` cannot answer here: the box has the 26.3 jar but no decompiled sources, so the build's class index is empty and the check reports `no class Gui`, `no class AbstractWidget` and so on for every row in the file, including rows this PR does not touch. 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:35:55 +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#7220
No description provided.