[PR #7282] [MERGED] Port map: three Create World tab rows name the functions that port them #7460

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-a-client2-012


📝 Commits (2)

  • 224b8e2 port_map: the Create World tab row takes Ctrl+number and Ctrl+Tab
  • 9a40053 port_map: selectTab is Title::select_create_tab, and its gap is closed

📊 Changes

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

View changed files

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

📄 Description

Three TabNavigationBar rows in tools/port_map/client2-012.tsv: the bar's key
handling and its index math are in the tree, and selectTab has a function of
its own now.

row before after
TabNavigationBar.keyPressed missing crates/horizon-client/src/title.rs::Title::tab_bar_key
TabNavigationBar.getNextTabIndex missing crates/horizon-client/src/title/create_world.rs::next_tab_index
TabNavigationBar.selectTab Title::click + "no select by index" gap crates/horizon-client/src/title.rs::Title::select_create_tab

Citations checked in the tree

  • Title::tab_bar_key takes Ctrl and only Ctrl, returns early while a world is
    preparing or the game rules, experiments or their confirmation screen hold the
    keys, then selects next_tab_index(...) clamped to tab_count() - 1.
  • create_world::next_tab_index walks the numeric keys (Digit0..Digit9,
    keypad too) as floorMod(key - 1, 10), so Ctrl+1 is the first tab and Ctrl+0
    the tenth, and steps one tab for Tab, back with Shift, wrapping over the three
    Create World tabs.
  • Title::select_create_tab sets options.tab, moves the focus to the footer
    and reports whether the tab changed; the click on the row and the Ctrl+number
    path both call it, which closes the gap the row carried.

Map check

python3 tools/port_ledger.py map-check tools/port_map/client2-012.tsv
150 rows, no problems.

Built against the tree with tools/port_ledger.py build --jar client-26.3.jar --jar server-26.3.jar.

Proven: the three functions exist at the cited paths and do what the rows
say; the map-check passes with no problem on the file.

Not proven: nothing was run in game, so the tab keys are read, not pressed.
TabNavigationBar.setFocused, nextFocusPath and setTabTooltip stay missing:
the row takes no keyboard focus and no per-tab tooltip exists.


🔄 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/7282 **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/vol-a-client2-012` --- ### 📝 Commits (2) - [`224b8e2`](https://github.com/horizon-rust/horizon/commit/224b8e215281af3830f71da751cce4a65b05cc60) port_map: the Create World tab row takes Ctrl+number and Ctrl+Tab - [`9a40053`](https://github.com/horizon-rust/horizon/commit/9a400530febc31254070ad92cbd2f82b83b7993a) port_map: selectTab is Title::select_create_tab, and its gap is closed ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-012.tsv` (+3 -3) </details> ### 📄 Description Three `TabNavigationBar` rows in `tools/port_map/client2-012.tsv`: the bar's key handling and its index math are in the tree, and `selectTab` has a function of its own now. | row | before | after | | --- | --- | --- | | `TabNavigationBar.keyPressed` | missing | `crates/horizon-client/src/title.rs::Title::tab_bar_key` | | `TabNavigationBar.getNextTabIndex` | missing | `crates/horizon-client/src/title/create_world.rs::next_tab_index` | | `TabNavigationBar.selectTab` | `Title::click` + "no select by index" gap | `crates/horizon-client/src/title.rs::Title::select_create_tab` | **Citations checked in the tree** - `Title::tab_bar_key` takes Ctrl and only Ctrl, returns early while a world is preparing or the game rules, experiments or their confirmation screen hold the keys, then selects `next_tab_index(...)` clamped to `tab_count() - 1`. - `create_world::next_tab_index` walks the numeric keys (`Digit0`..`Digit9`, keypad too) as `floorMod(key - 1, 10)`, so Ctrl+1 is the first tab and Ctrl+0 the tenth, and steps one tab for Tab, back with Shift, wrapping over the three Create World tabs. - `Title::select_create_tab` sets `options.tab`, moves the focus to the footer and reports whether the tab changed; the click on the row and the Ctrl+number path both call it, which closes the gap the row carried. **Map check** ``` python3 tools/port_ledger.py map-check tools/port_map/client2-012.tsv 150 rows, no problems. ``` Built against the tree with `tools/port_ledger.py build --jar client-26.3.jar --jar server-26.3.jar`. **Proven:** the three functions exist at the cited paths and do what the rows say; the map-check passes with no problem on the file. **Not proven:** nothing was run in game, so the tab keys are read, not pressed. `TabNavigationBar.setFocused`, `nextFocusPath` and `setTabTooltip` stay missing: the row takes no keyboard focus and no per-tab tooltip exists. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:49 +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#7460
No description provided.