[PR #4706] [MERGED] Show the accessibility onboarding on a first launch; cartography preview draws renderOnFrame markers #5796

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4706
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/07-ui


📝 Commits (1)

  • 699afa8 Show the accessibility onboarding on a first launch; draw only renderOnFrame markers on the cartography map

📊 Changes

12 files changed (+476 additions, -28 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+13 -0)
📝 crates/horizon-client/src/game/agent.rs (+1 -0)
📝 crates/horizon-client/src/game/cartography.rs (+15 -5)
📝 crates/horizon-client/src/game/maps.rs (+1 -1)
📝 crates/horizon-client/src/game/startup_menu.rs (+13 -0)
📝 crates/horizon-client/src/title.rs (+60 -16)
📝 crates/horizon-client/src/title/create_world.rs (+1 -0)
📝 crates/horizon-client/src/title/flat.rs (+1 -0)
➕ crates/horizon-client/src/title/onboarding.rs (+362 -0)
📝 tools/agent_control_e2e.py (+3 -0)
📝 tools/port_map/client2-009.tsv (+3 -3)
📝 tools/port_map/client2-013.tsv (+3 -3)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3518

Rows done

  • Gui.addInitialScreens / Gui.buildInitialScreens: a first launch (onboardAccessibility set, as options_file.rs defaults it) now starts on AccessibilityOnboardingScreen before the title, in both the startup menu and the game's title. Escape or Continue fades it out and stores onboardAccessibility:false (Options.onboardingAccessibilityFinished). Ban notices are not part of this PR: they need the services attributes and profile actions (no client for them in Horizon), so those two rows stay partly open.
  • AccessibilityOnboardingScreen.init/closeAndSetScreen/extractRenderState: HeaderAndFooterLayout(90, 33), the 374-wide title box (black fill, grey outline), the 2x2 grid of 150-wide buttons in 4 px cells (Narrator inactive and reading Not Available, Music & Sounds, Accessibility Settings, Language, each with its trailing icon like SpriteIconButton.TextAndIcon), Continue in the footer; Sounds/Accessibility/Language open the options page and return to the screen; widgets fade in over 2 s and out over 1 s (Mth.clampedMap(fade, 0.5, 1, 0, 1)), the logo stays opaque.
  • GuiGraphicsExtractor.map: the cartography preview drew every marker; vanilla's map draws only decorations with renderOnFrame (MapDecorationType.showOnItemFrame), so the player arrows and the red/blue markers are skipped there.

Rows not changed (see result file)

FindTreeTutorialStepInstance.tick and GuiGraphicsExtractor.book are already on main (game/tutorial.rs, item_render/gui.rs::draw_enchanting_book); GuiSkinRenderer.renderToTexture is only used by PlayerSkinWidget in the report screen, not Skin Customisation; the smithing armour-stand rows are #4588.

Vanilla methods followed

Gui.addInitialScreens, AccessibilityOnboardingScreen (init, extractRenderState, onClose, close, closeAndSetScreen), HeaderAndFooterLayout.arrangeElements, FrameLayout, GridLayout, FocusableTextWidget, SpriteIconButton.TextAndIcon, LogoRenderer, GuiGraphicsExtractor.map.

Tests

title::onboarding (layout positions at 854x480 and a short window, the fade curve, Escape then the fade ending), cartography::the_preview_skips_what_an_item_frame_skips. cargo fmt, clippy -p horizon-client --all-targets -D warnings clean. Not run in game. tools/agent_control_e2e.py writes onboardAccessibility:false into its scratch home so its scenarios still start at the title.

Known gaps: no narrator output (so the Narrator button stays inactive, as in vanilla without a narrator), the panorama is not held still (holdSpin), no keyboard focus ring.

🤖 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/4706 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/07-ui` --- ### 📝 Commits (1) - [`699afa8`](https://github.com/horizon-rust/horizon/commit/699afa8007b250935028a394b91cfedbff72b2ec) Show the accessibility onboarding on a first launch; draw only renderOnFrame markers on the cartography map ### 📊 Changes **12 files changed** (+476 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+13 -0) 📝 `crates/horizon-client/src/game/agent.rs` (+1 -0) 📝 `crates/horizon-client/src/game/cartography.rs` (+15 -5) 📝 `crates/horizon-client/src/game/maps.rs` (+1 -1) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+13 -0) 📝 `crates/horizon-client/src/title.rs` (+60 -16) 📝 `crates/horizon-client/src/title/create_world.rs` (+1 -0) 📝 `crates/horizon-client/src/title/flat.rs` (+1 -0) ➕ `crates/horizon-client/src/title/onboarding.rs` (+362 -0) 📝 `tools/agent_control_e2e.py` (+3 -0) 📝 `tools/port_map/client2-009.tsv` (+3 -3) 📝 `tools/port_map/client2-013.tsv` (+3 -3) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 ## Rows done - `Gui.addInitialScreens` / `Gui.buildInitialScreens`: a first launch (`onboardAccessibility` set, as `options_file.rs` defaults it) now starts on `AccessibilityOnboardingScreen` before the title, in both the startup menu and the game's title. Escape or Continue fades it out and stores `onboardAccessibility:false` (`Options.onboardingAccessibilityFinished`). **Ban notices are not part of this PR**: they need the services attributes and profile actions (no client for them in Horizon), so those two rows stay partly open. - `AccessibilityOnboardingScreen.init/closeAndSetScreen/extractRenderState`: `HeaderAndFooterLayout(90, 33)`, the 374-wide title box (black fill, grey outline), the 2x2 grid of 150-wide buttons in 4 px cells (Narrator inactive and reading Not Available, Music & Sounds, Accessibility Settings, Language, each with its trailing icon like `SpriteIconButton.TextAndIcon`), Continue in the footer; Sounds/Accessibility/Language open the options page and return to the screen; widgets fade in over 2 s and out over 1 s (`Mth.clampedMap(fade, 0.5, 1, 0, 1)`), the logo stays opaque. - `GuiGraphicsExtractor.map`: the cartography preview drew every marker; vanilla's `map` draws only decorations with `renderOnFrame` (`MapDecorationType.showOnItemFrame`), so the player arrows and the red/blue markers are skipped there. ## Rows not changed (see result file) `FindTreeTutorialStepInstance.tick` and `GuiGraphicsExtractor.book` are already on main (`game/tutorial.rs`, `item_render/gui.rs::draw_enchanting_book`); `GuiSkinRenderer.renderToTexture` is only used by `PlayerSkinWidget` in the report screen, not Skin Customisation; the smithing armour-stand rows are #4588. ## Vanilla methods followed `Gui.addInitialScreens`, `AccessibilityOnboardingScreen` (`init`, `extractRenderState`, `onClose`, `close`, `closeAndSetScreen`), `HeaderAndFooterLayout.arrangeElements`, `FrameLayout`, `GridLayout`, `FocusableTextWidget`, `SpriteIconButton.TextAndIcon`, `LogoRenderer`, `GuiGraphicsExtractor.map`. ## Tests `title::onboarding` (layout positions at 854x480 and a short window, the fade curve, Escape then the fade ending), `cartography::the_preview_skips_what_an_item_frame_skips`. `cargo fmt`, `clippy -p horizon-client --all-targets -D warnings` clean. Not run in game. `tools/agent_control_e2e.py` writes `onboardAccessibility:false` into its scratch home so its scenarios still start at the title. Known gaps: no narrator output (so the Narrator button stays inactive, as in vanilla without a narrator), the panorama is not held still (`holdSpin`), no keyboard focus ring. 🤖 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 05:15:03 +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#5796
No description provided.