[PR #6958] [MERGED] Clear stale client2-015 rows main already implements #7230

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-015


📝 Commits (3)

  • 0f52737 port_map: clear stale client2-015 rows main already implements
  • d47d687 Merge remote-tracking branch 'upstream/main' into HEAD
  • 3d2e0c7 Merge main into #6958

📊 Changes

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

View changed files

📝 tools/port_map/client2-015.tsv (+18 -18)

📄 Description

Eighteen missing rows in tools/port_map/client2-015.tsv named no port for code the tree has; they now cite it. Three stay as they are.

World options and statistics:

  • WorldOptionsScreen.updatePersonalGameModeButton and WorldOptionsScreen.onDefaultGameModeChanged -> inline crates/horizon-client/src/game/lan_screen.rs::WorldOptions::buttons: both buttons are rebuilt from the live modes every frame and labelled in WorldOptions::label, so a mode changed while the screen is open shows without a callback.
  • StatsScreen.setTabActiveStateAndTooltip -> port crates/horizon-client/src/game/stats_screen.rs::stats_tab_active: the Items and Mobs tabs are selectable only with rows, and hovering an empty tab draws its gui.stats.none_found tooltip (split at 170) in Game::draw_stats.
  • StatsScreen.ItemStatisticsList.ItemRow.ItemRowWidget.extractTooltip -> port crates/horizon-client/src/game/stats_screen.rs::Game::draw_stats: the hovered item row draws its stack tooltip at the slot's corner.

DebugOptionsScreen (F3+F6), crates/horizon-client/src/game/debug_options.rs:

  • init -> Game::debug_options_header: init's vertical layout (header 61, footer 33, title row and warning), the search box and scroll made in Game::toggle_debug_options.
  • addProfileButton -> footer: the Default and Performance profile buttons are the first two footer buttons, loaded by Game::debug_options_click.
  • repositionElements -> Game::draw_debug_options: header, list between 61 and h - 33, and the footer placed from the screen size each frame.
  • CategoryEntry.extractContent and OptionList.updateSearch -> rows: a Row::Category before each category's entries, the list rebuilt from debug_entries::search(search box) on every draw, click and scroll.
  • OptionEntry.<init> -> button_xs: the three 60-wide Off / In Overlay / Always buttons at their content offsets.
  • OptionEntry.setValue -> Game::debug_options_click: a press on a status button sets it through debug_entries.set_status.
  • OptionEntry.extractContent and OptionEntry.refreshEntry -> Game::draw_debug_options: the row is drawn from debug_entries.status every frame, so set_status needs no refresh.

Dialogs:

  • DialogListDialogScreen.createDialogClickAction -> port crates/horizon-client/src/dialog.rs::Dialog::set_list: each listed dialog is a button whose action is Click::ShowDialog, opened by run_dialog_action.
  • DialogBodyHandlers.runActionOnParent -> port crates/horizon-client/src/game/dialogs.rs::Game::dialog_click: a press on a message or description line reads the hovered style (dialog_screen::line_style_at) and runs its click event.
  • DialogBodyHandlers.ItemHandler.createControls -> port crates/horizon-client/src/dialog_screen.rs::item: the item widget with its description 2 to the right, centred on each other vertically.
  • InputControlHandlers.NumberRangeHandler.addControl and InputControlHandlers.SingleOptionHandler.addControl -> port crates/horizon-client/src/dialog_screen.rs::input: Control::NumberRange lays out a 20 high Part::Slider, Control::SingleOption a Part::Cycle, both the input's width.

Still missing: StatsScreen.keyPressed (the statistics screen has no key handling at all), AdvancementsScreen.removed (no closed-screen packet when the advancements screen closes) and GameModeSwitcherScreen.mouseReleased (the switcher has no mouse handling; debug keys are keyboard only).

map-check: 149 rows, no problems.

Proven: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-015.tsv -> 149 rows, no problems.
Not proven: no in-game check: the debug entry editor, the dialog list, text clicks and input controls, the statistics tooltips and the world-options buttons were read in the code, never opened in a running client.


🔄 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/6958 **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-015` --- ### 📝 Commits (3) - [`0f52737`](https://github.com/horizon-rust/horizon/commit/0f527373579d83d597b30b39a9f39cefc7fa9781) port_map: clear stale client2-015 rows main already implements - [`d47d687`](https://github.com/horizon-rust/horizon/commit/d47d687fee0472da8c480ec557543c3baddb04f2) Merge remote-tracking branch 'upstream/main' into HEAD - [`3d2e0c7`](https://github.com/horizon-rust/horizon/commit/3d2e0c7a3f1945fb654ba7c1f6afbf55456aca4c) Merge main into #6958 ### 📊 Changes **1 file changed** (+18 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-015.tsv` (+18 -18) </details> ### 📄 Description Eighteen `missing` rows in `tools/port_map/client2-015.tsv` named no port for code the tree has; they now cite it. Three stay as they are. World options and statistics: - `WorldOptionsScreen.updatePersonalGameModeButton` and `WorldOptionsScreen.onDefaultGameModeChanged` -> `inline` `crates/horizon-client/src/game/lan_screen.rs::WorldOptions::buttons`: both buttons are rebuilt from the live modes every frame and labelled in `WorldOptions::label`, so a mode changed while the screen is open shows without a callback. - `StatsScreen.setTabActiveStateAndTooltip` -> `port` `crates/horizon-client/src/game/stats_screen.rs::stats_tab_active`: the Items and Mobs tabs are selectable only with rows, and hovering an empty tab draws its `gui.stats.none_found` tooltip (split at 170) in `Game::draw_stats`. - `StatsScreen.ItemStatisticsList.ItemRow.ItemRowWidget.extractTooltip` -> `port` `crates/horizon-client/src/game/stats_screen.rs::Game::draw_stats`: the hovered item row draws its stack tooltip at the slot's corner. `DebugOptionsScreen` (F3+F6), `crates/horizon-client/src/game/debug_options.rs`: - `init` -> `Game::debug_options_header`: init's vertical layout (header 61, footer 33, title row and warning), the search box and scroll made in `Game::toggle_debug_options`. - `addProfileButton` -> `footer`: the Default and Performance profile buttons are the first two footer buttons, loaded by `Game::debug_options_click`. - `repositionElements` -> `Game::draw_debug_options`: header, list between 61 and h - 33, and the footer placed from the screen size each frame. - `CategoryEntry.extractContent` and `OptionList.updateSearch` -> `rows`: a `Row::Category` before each category's entries, the list rebuilt from `debug_entries::search(search box)` on every draw, click and scroll. - `OptionEntry.<init>` -> `button_xs`: the three 60-wide Off / In Overlay / Always buttons at their content offsets. - `OptionEntry.setValue` -> `Game::debug_options_click`: a press on a status button sets it through `debug_entries.set_status`. - `OptionEntry.extractContent` and `OptionEntry.refreshEntry` -> `Game::draw_debug_options`: the row is drawn from `debug_entries.status` every frame, so `set_status` needs no refresh. Dialogs: - `DialogListDialogScreen.createDialogClickAction` -> `port` `crates/horizon-client/src/dialog.rs::Dialog::set_list`: each listed dialog is a button whose action is `Click::ShowDialog`, opened by `run_dialog_action`. - `DialogBodyHandlers.runActionOnParent` -> `port` `crates/horizon-client/src/game/dialogs.rs::Game::dialog_click`: a press on a message or description line reads the hovered style (`dialog_screen::line_style_at`) and runs its click event. - `DialogBodyHandlers.ItemHandler.createControls` -> `port` `crates/horizon-client/src/dialog_screen.rs::item`: the item widget with its description 2 to the right, centred on each other vertically. - `InputControlHandlers.NumberRangeHandler.addControl` and `InputControlHandlers.SingleOptionHandler.addControl` -> `port` `crates/horizon-client/src/dialog_screen.rs::input`: `Control::NumberRange` lays out a 20 high `Part::Slider`, `Control::SingleOption` a `Part::Cycle`, both the input's width. Still `missing`: `StatsScreen.keyPressed` (the statistics screen has no key handling at all), `AdvancementsScreen.removed` (no closed-screen packet when the advancements screen closes) and `GameModeSwitcherScreen.mouseReleased` (the switcher has no mouse handling; debug keys are keyboard only). map-check: `149 rows, no problems.` **Proven:** `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar && python3 tools/port_ledger.py map-check tools/port_map/client2-015.tsv` -> `149 rows, no problems.` **Not proven:** no in-game check: the debug entry editor, the dialog list, text clicks and input controls, the statistics tooltips and the world-options buttons were read in the code, never opened in a running client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:01 +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#7230
No description provided.