[PR #5346] [MERGED] Narrate World Options' switches and the stats lists; horizon-ctl keys reach the narration #6228

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5346
Author: @leifiyoo
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: narrator/13-world-options


📝 Commits (10+)

  • 37313e8 Narrate World Options' switches and lock, and the stats lists
  • 6fd6a9b Narrate the recipe book as RecipeBookComponent does
  • 8049680 Leave inactive edit boxes out and keep the book button's focus
  • 741cc76 Narrate options lists, key binds, pack lists and dialogs as vanilla does
  • bbbdd3d Narrate game rules and command block switches as CycleButtons
  • 9171f3b Let horizon-ctl's keys and typing reach the screen narration
  • 3ef1e50 Merge #5342's main merge into #5343 (main merged, conflicts resolved below)
  • 7cab1f0 Merge #5343's main merge into #5344 (main merged, conflicts resolved below)
  • a0e02c4 Merge #5344's main merge into #5346 (main merged, conflicts resolved below)
  • 1cab2e7 Merge main into #5343 (options_ui: main's shader-option tooltips and fitted labels beside tooltip_text)

📊 Changes

14 files changed (+1346 additions, -159 deletions)

View changed files

📝 crates/horizon-client-render/src/options_ui.rs (+334 -85)
📝 crates/horizon-client-render/src/pack_screen.rs (+47 -6)
📝 crates/horizon-client-render/src/ui.rs (+21 -3)
📝 crates/horizon-client-render/src/widgets.rs (+102 -9)
📝 crates/horizon-client/src/game/command_blocks.rs (+126 -1)
📝 crates/horizon-client/src/game/control.rs (+4 -0)
📝 crates/horizon-client/src/game/dialogs.rs (+71 -0)
📝 crates/horizon-client/src/game/lan_screen.rs (+195 -1)
📝 crates/horizon-client/src/game/narrator.rs (+19 -11)
📝 crates/horizon-client/src/game/recipe_book.rs (+98 -3)
📝 crates/horizon-client/src/game/stats_screen.rs (+104 -31)
📝 crates/horizon-client/src/game_rules_screen.rs (+100 -1)
📝 crates/horizon-client/src/recipe_book_screen.rs (+1 -1)
📝 crates/horizon-client/src/screen_narrator.rs (+124 -7)

📄 Description

🤖 Opened by leifiyoo's AI agent (Claude), not by leifiyoo.

Part 13 of 16 of the narrator series. All 16 PRs have to be merged, in this order, for the narrator to work completely: #5333 → #5334 → #5335 → #5336 → #5337 → #5338 → #5339 → #5340 → #5341 → #5342 → #5343 → #5344 → #5346 → #5347 → #5348 → #5349. Each PR builds on the one before it (stacked branches), so until the previous one is merged this PR's diff also shows its commits; merging only some of them, or out of order, leaves the narrator unfinished.

Stacked on #5344 — merge that first; until then this PR also shows its commits.

World Options' switches and difficulty lock and the statistics lists are now read as vanilla's; inactive edit boxes are left out; and horizon-ctl's keys and typing reach the screen narration, so scripted runs hear the chat's typed message.

What vanilla does

  • World Options: CycleButtons, the difficulty LockIconButton ("Difficulty lock button. Locked/Unlocked"), FocusableTextWidget headers, the port box after the LAN switch; an EditBox that can't be edited isn't active (updatePortControlsState).
  • StatsScreen: the general and mob lists are ObjectSelectionLists, the item list a ContainerObjectSelectionList of sort buttons and items.
  • The recipe book button keeps the focus a click gave it (ImageButton).

What changed

  • crates/horizon-client/src/game/lan_screen.rs, game/stats_screen.rs, game/recipe_book.rs, game/control.rs, game/narrator.rs, screen_narrator.rs; crates/horizon-client-render/src/widgets.rs.

How it was tested

  • cargo test -p horizon-client --lib screen_narrator, cargo test -p horizon-client-render --lib widgets.
  • clippy (all targets) clean at this tip; fmt.
  • To try: horizon-ctl type into the chat, then horizon-ctl narration shows the typed message.

🤖 Generated with Claude Code


🔄 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/5346 **Author:** [@leifiyoo](https://github.com/leifiyoo) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `narrator/13-world-options` --- ### 📝 Commits (10+) - [`37313e8`](https://github.com/horizon-rust/horizon/commit/37313e8314057954e02ac247e317902a5d45d2b0) Narrate World Options' switches and lock, and the stats lists - [`6fd6a9b`](https://github.com/horizon-rust/horizon/commit/6fd6a9badb20ee9d0257b4330bcbe868b66d1cb4) Narrate the recipe book as RecipeBookComponent does - [`8049680`](https://github.com/horizon-rust/horizon/commit/80496802e2c752692690d9aca99b5e8707868233) Leave inactive edit boxes out and keep the book button's focus - [`741cc76`](https://github.com/horizon-rust/horizon/commit/741cc760705bd9e12174f9b1d04f6d9e0b252d1c) Narrate options lists, key binds, pack lists and dialogs as vanilla does - [`bbbdd3d`](https://github.com/horizon-rust/horizon/commit/bbbdd3d1630bfd7d8fbc6d9d3a4859c4f8d7ecdc) Narrate game rules and command block switches as CycleButtons - [`9171f3b`](https://github.com/horizon-rust/horizon/commit/9171f3b8cf48554db014856481e0bd4175ab3dfa) Let horizon-ctl's keys and typing reach the screen narration - [`3ef1e50`](https://github.com/horizon-rust/horizon/commit/3ef1e50576a266514fde48ae3cae9ba3e9119040) Merge #5342's main merge into #5343 (main merged, conflicts resolved below) - [`7cab1f0`](https://github.com/horizon-rust/horizon/commit/7cab1f04140bbb41bc18d7b1e9944db5b1ca2c8d) Merge #5343's main merge into #5344 (main merged, conflicts resolved below) - [`a0e02c4`](https://github.com/horizon-rust/horizon/commit/a0e02c41c4c25e558b0db8d71ef5c539c8e95218) Merge #5344's main merge into #5346 (main merged, conflicts resolved below) - [`1cab2e7`](https://github.com/horizon-rust/horizon/commit/1cab2e7411d4aea2df7d5b30efb65d7008f6e0b7) Merge main into #5343 (options_ui: main's shader-option tooltips and fitted labels beside tooltip_text) ### 📊 Changes **14 files changed** (+1346 additions, -159 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_ui.rs` (+334 -85) 📝 `crates/horizon-client-render/src/pack_screen.rs` (+47 -6) 📝 `crates/horizon-client-render/src/ui.rs` (+21 -3) 📝 `crates/horizon-client-render/src/widgets.rs` (+102 -9) 📝 `crates/horizon-client/src/game/command_blocks.rs` (+126 -1) 📝 `crates/horizon-client/src/game/control.rs` (+4 -0) 📝 `crates/horizon-client/src/game/dialogs.rs` (+71 -0) 📝 `crates/horizon-client/src/game/lan_screen.rs` (+195 -1) 📝 `crates/horizon-client/src/game/narrator.rs` (+19 -11) 📝 `crates/horizon-client/src/game/recipe_book.rs` (+98 -3) 📝 `crates/horizon-client/src/game/stats_screen.rs` (+104 -31) 📝 `crates/horizon-client/src/game_rules_screen.rs` (+100 -1) 📝 `crates/horizon-client/src/recipe_book_screen.rs` (+1 -1) 📝 `crates/horizon-client/src/screen_narrator.rs` (+124 -7) </details> ### 📄 Description > 🤖 Opened by leifiyoo's AI agent (Claude), not by leifiyoo. **Part 13 of 16 of the narrator series.** All 16 PRs have to be merged, in this order, for the narrator to work completely: #5333 → #5334 → #5335 → #5336 → #5337 → #5338 → #5339 → #5340 → #5341 → #5342 → #5343 → #5344 → #5346 → #5347 → #5348 → #5349. Each PR builds on the one before it (stacked branches), so until the previous one is merged this PR's diff also shows its commits; merging only some of them, or out of order, leaves the narrator unfinished. Stacked on #5344 — merge that first; until then this PR also shows its commits. World Options' switches and difficulty lock and the statistics lists are now read as vanilla's; inactive edit boxes are left out; and `horizon-ctl`'s keys and typing reach the screen narration, so scripted runs hear the chat's typed message. ## What vanilla does - World Options: `CycleButton`s, the difficulty `LockIconButton` ("Difficulty lock button. Locked/Unlocked"), `FocusableTextWidget` headers, the port box after the LAN switch; an `EditBox` that can't be edited isn't active (`updatePortControlsState`). - `StatsScreen`: the general and mob lists are `ObjectSelectionList`s, the item list a `ContainerObjectSelectionList` of sort buttons and items. - The recipe book button keeps the focus a click gave it (`ImageButton`). ## What changed - `crates/horizon-client/src/game/lan_screen.rs`, `game/stats_screen.rs`, `game/recipe_book.rs`, `game/control.rs`, `game/narrator.rs`, `screen_narrator.rs`; `crates/horizon-client-render/src/widgets.rs`. ## How it was tested - `cargo test -p horizon-client --lib screen_narrator`, `cargo test -p horizon-client-render --lib widgets`. - clippy (all targets) clean at this tip; fmt. - To try: `horizon-ctl type` into the chat, then `horizon-ctl narration` shows the typed message. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:16:07 +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#6228
No description provided.