[PR #1061] [MERGED] Restore missing accessibility settings #3014

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1061
Author: @rdbtCVS
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @ludovic111

Base: main ← Head: t3/fix-issue-1058


📝 Commits (2)

  • 2469b92 Restore missing accessibility settings and disable unfinished features
  • 01fcfc9 Match vanilla accessibility controls and hide unavailable Horizon options

📊 Changes

8 files changed (+364 additions, -32 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+18 -3)
📝 crates/horizon-client/src/game/sculk.rs (+3 -3)
📝 crates/horizon-client/src/game/startup_menu.rs (+1 -0)
📝 crates/horizon-client/src/gfx/panorama.rs (+24 -0)
📝 crates/horizon-client/src/options_horizon.rs (+53 -13)
📝 crates/horizon-client/src/options_ui.rs (+265 -13)
➕ docs/media/accessibility-settings-horizon.png (+0 -0)
➕ docs/media/accessibility-settings.png (+0 -0)

📄 Description

What and why

Fixes #1058. Restore the vanilla accessibility option list and Controls shortcut in Classic UI. Horizon shows supported accessibility options and the Controls shortcut. Sneak, Sprint, and Auto-Jump remain in Controls, matching Minecraft’s Accessibility layout.

Enable FOV Effects, Damage Tilt, text background scope, Darkness Pulsing, Hide Sky Flashes, panorama speed, and Hide Splash Texts. Settings persist in options.txt; panorama speed changes preserve the current angle.

Narrator and its hotkey, Chat Delay, Distortion Effects, Glint Speed/Strength, Monochrome Logo, Rotate with Minecarts, and High Contrast Block Outlines remain visible but disabled in Classic UI until their supporting systems are implemented, with an explanation on hover. These unavailable items are hidden in Horizon UI.

Vanilla reference

Checked the pinned 26.3 client bytecode with javap -c -p:

  • AccessibilityOptionsScreen.options and addOptions for option coverage and the Controls shortcut.
  • Options constructor / OptionInstance.UnitDouble.xmap for option keys, defaults, and squared FOV/darkness slider values.
  • LightmapRenderStateExtractor.extract for darkness scaling, including the extra pulse scale.
  • Panorama.extractRenderState for accumulated rotation at 0.1 degrees per tick times the speed option.

Self-check

Initial implementation (2469b92e):

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at defaa7cd2, 11 min 11 s)

Check Result
Scope ✅ 6 files, +353 −32
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (9 s)
clippy ✅ (1 min 18 s)
tests: horizon-client ✅ 1034 passed (9 min 44 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

UI follow-up: cargo test --locked -p horizon-client --lib accessibility passed (4 tests); cargo clippy --locked -p horizon-client --lib -- -D warnings and cargo fmt --all -- --check passed. Regression checks enforce the exact Classic option list and exclude unavailable options from Horizon.

python3 tools/test_options_parity.py: all 17,524 cases matched the pinned client (3,417,311 output lines). New unit regressions cover option persistence, nonlinear sliders, disabled controls, shared menu coverage, and panorama speed changes.

Screenshots

Before: issue screenshots.

After (actual UI draw output rendered for layout review):

Classic accessibility settings

Horizon accessibility settings


🔄 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/1061 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `t3/fix-issue-1058` --- ### 📝 Commits (2) - [`2469b92`](https://github.com/horizon-rust/horizon/commit/2469b92e4fda002b510e8cbc2e3ee0f415bbf34f) Restore missing accessibility settings and disable unfinished features - [`01fcfc9`](https://github.com/horizon-rust/horizon/commit/01fcfc90959ec56d6793453f60955add829ccd63) Match vanilla accessibility controls and hide unavailable Horizon options ### 📊 Changes **8 files changed** (+364 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+18 -3) 📝 `crates/horizon-client/src/game/sculk.rs` (+3 -3) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+1 -0) 📝 `crates/horizon-client/src/gfx/panorama.rs` (+24 -0) 📝 `crates/horizon-client/src/options_horizon.rs` (+53 -13) 📝 `crates/horizon-client/src/options_ui.rs` (+265 -13) ➕ `docs/media/accessibility-settings-horizon.png` (+0 -0) ➕ `docs/media/accessibility-settings.png` (+0 -0) </details> ### 📄 Description ## What and why Fixes #1058. Restore the vanilla accessibility option list and Controls shortcut in Classic UI. Horizon shows supported accessibility options and the Controls shortcut. Sneak, Sprint, and Auto-Jump remain in Controls, matching Minecraft’s Accessibility layout. Enable FOV Effects, Damage Tilt, text background scope, Darkness Pulsing, Hide Sky Flashes, panorama speed, and Hide Splash Texts. Settings persist in `options.txt`; panorama speed changes preserve the current angle. Narrator and its hotkey, Chat Delay, Distortion Effects, Glint Speed/Strength, Monochrome Logo, Rotate with Minecarts, and High Contrast Block Outlines remain visible but disabled in Classic UI until their supporting systems are implemented, with an explanation on hover. These unavailable items are hidden in Horizon UI. ## Vanilla reference Checked the pinned 26.3 client bytecode with `javap -c -p`: - `AccessibilityOptionsScreen.options` and `addOptions` for option coverage and the Controls shortcut. - `Options` constructor / `OptionInstance.UnitDouble.xmap` for option keys, defaults, and squared FOV/darkness slider values. - `LightmapRenderStateExtractor.extract` for darkness scaling, including the extra pulse scale. - `Panorama.extractRenderState` for accumulated rotation at 0.1 degrees per tick times the speed option. ## Self-check Initial implementation (`2469b92e`): **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at defaa7cd2, 11 min 11 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +353 −32 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (9 s) | | clippy | ✅ (1 min 18 s) | | tests: horizon-client | ✅ 1034 passed (9 min 44 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | UI follow-up: `cargo test --locked -p horizon-client --lib accessibility` passed (4 tests); `cargo clippy --locked -p horizon-client --lib -- -D warnings` and `cargo fmt --all -- --check` passed. Regression checks enforce the exact Classic option list and exclude unavailable options from Horizon. `python3 tools/test_options_parity.py`: all 17,524 cases matched the pinned client (3,417,311 output lines). New unit regressions cover option persistence, nonlinear sliders, disabled controls, shared menu coverage, and panorama speed changes. ## Screenshots Before: [issue screenshots](https://github.com/ludovic111/horizon/issues/1058). After (actual UI draw output rendered for layout review): ![Classic accessibility settings](https://raw.githubusercontent.com/rdbtCVS/horizon/t3/fix-issue-1058/docs/media/accessibility-settings.png) ![Horizon accessibility settings](https://raw.githubusercontent.com/rdbtCVS/horizon/t3/fix-issue-1058/docs/media/accessibility-settings-horizon.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:00: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#3014
No description provided.