[PR #5344] [MERGED] Narrate the recipe book, game rules and command block switches #6226

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

📋 Pull Request Information

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

Base: main ← Head: narrator/12-recipes-rules


📝 Commits (7)

  • 6fd6a9b Narrate the recipe book as RecipeBookComponent does
  • 741cc76 Narrate options lists, key binds, pack lists and dialogs as vanilla does
  • bbbdd3d Narrate game rules and command block switches as CycleButtons
  • 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)
  • 1cab2e7 Merge main into #5343 (options_ui: main's shader-option tooltips and fitted labels beside tooltip_text)
  • e550e5a Merge #5343's main merge into #5344 (main merged, conflicts resolved below)

📊 Changes

10 files changed (+1002 additions, -109 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 (+84 -3)
📝 crates/horizon-client/src/game/command_blocks.rs (+126 -1)
📝 crates/horizon-client/src/game/dialogs.rs (+71 -0)
📝 crates/horizon-client/src/game/recipe_book.rs (+95 -3)
📝 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 (+123 -6)

📄 Description

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

Part 12 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 #5343 — merge that first; until then this PR also shows its commits.

The recipe book, the game rules list and the command block's switches are now read as vanilla reads them.

What vanilla does

  • RecipeBookComponent is one narratable, hovered while visible, narrating the recipe button, search box, filter or tab findNarratableWidget picks one level in; the book button is an ImageButton without a message.
  • EditGameRulesScreen.BooleanRuleEntry's custom narration (name, value, description, default); the rules list is a ContainerObjectSelectionList with category headers.
  • CommandBlockEditScreen's CycleButtons with displayOnlyValue: ": " and the next value.

What changed

  • crates/horizon-client-render/src/ui.rs (ui::button_as), widgets.rs; crates/horizon-client/src/game/recipe_book.rs, recipe_book_screen.rs, game_rules_screen.rs, game/command_blocks.rs, screen_narrator.rs.

How it was tested

  • cargo test -p horizon-client --bins command_blocks::narration_tests, cargo test -p horizon-client --lib screen_narrator (recipe book group, rules list), cargo test -p horizon-client --lib game_rules_screen (a switch's name, value, description and next value).
  • clippy (all targets) clean at this tip; fmt.

🤖 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/5344 **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/12-recipes-rules` --- ### 📝 Commits (7) - [`6fd6a9b`](https://github.com/horizon-rust/horizon/commit/6fd6a9badb20ee9d0257b4330bcbe868b66d1cb4) Narrate the recipe book as RecipeBookComponent does - [`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 - [`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) - [`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) - [`e550e5a`](https://github.com/horizon-rust/horizon/commit/e550e5a609157f06e4a6001d2ca765543c290b7f) Merge #5343's main merge into #5344 (main merged, conflicts resolved below) ### 📊 Changes **10 files changed** (+1002 additions, -109 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` (+84 -3) 📝 `crates/horizon-client/src/game/command_blocks.rs` (+126 -1) 📝 `crates/horizon-client/src/game/dialogs.rs` (+71 -0) 📝 `crates/horizon-client/src/game/recipe_book.rs` (+95 -3) 📝 `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` (+123 -6) </details> ### 📄 Description > 🤖 Opened by leifiyoo's AI agent (Claude), not by leifiyoo. **Part 12 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 #5343 — merge that first; until then this PR also shows its commits. The recipe book, the game rules list and the command block's switches are now read as vanilla reads them. ## What vanilla does - `RecipeBookComponent` is one narratable, hovered while visible, narrating the recipe button, search box, filter or tab `findNarratableWidget` picks one level in; the book button is an `ImageButton` without a message. - `EditGameRulesScreen.BooleanRuleEntry`'s custom narration (name, value, description, default); the rules list is a `ContainerObjectSelectionList` with category headers. - `CommandBlockEditScreen`'s `CycleButton`s with `displayOnlyValue`: "<name>: <value>" and the next value. ## What changed - `crates/horizon-client-render/src/ui.rs` (`ui::button_as`), `widgets.rs`; `crates/horizon-client/src/game/recipe_book.rs`, `recipe_book_screen.rs`, `game_rules_screen.rs`, `game/command_blocks.rs`, `screen_narrator.rs`. ## How it was tested - `cargo test -p horizon-client --bins command_blocks::narration_tests`, `cargo test -p horizon-client --lib screen_narrator` (recipe book group, rules list), `cargo test -p horizon-client --lib game_rules_screen` (a switch's name, value, description and next value). - clippy (all targets) clean at this tip; fmt. 🤖 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:05 +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#6226
No description provided.