[PR #1122] [MERGED] Extras: classic buttons two to a row; each extra's settings nest under its switch #3066

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

📋 Pull Request Information

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

Base: main ← Head: fix/classic-extras-pairs


📝 Commits (1)

  • 7e82252 Extras: classic switches two to a row; settings nest under their switch

📊 Changes

4 files changed (+99 additions, -18 deletions)

View changed files

📝 crates/horizon-client/src/extras.rs (+16 -1)
📝 crates/horizon-client/src/options_horizon.rs (+44 -1)
📝 crates/horizon-client/src/options_ui.rs (+34 -15)
📝 docs/extras.md (+5 -1)

📄 Description

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

What

  • Classic Horizon Extras: each section's buttons are two to a row (150 wide), as vanilla's OptionsList.addSmall lays out an options screen and as Classic Video Settings already does. The section headings stay. "Lower sensitivity while zoomed" is now "Slower turning" so it fits a half-width button (it scrolled before).
  • Horizon Extras page: an extra's own settings nest under its switch and show only while it is on (extras::Item::parent). With everything off (the default) the page is one row per extra: Fullbright, Zoom, Minimap, FPS counter, Keystrokes, Mouse Tweaks controls, Sort buttons, Auto-reconnect. Each sub-setting does nothing while its switch is off (checked in game/tweaks.rs and game/extras.rs), so hiding it changes no behaviour. Classic keeps every button, as vanilla screens do.

Why

#812 (rdbtCVS): the classic screen was one full-width button per row. #815 (LookImEcho-Rick, from Rick Thiccms on Discord): "nest the settings in the Extras menu before it gets too messy". The sections were already there; this nests each extra's settings under its switch.

Screenshots (Mac mini, --offscreen, 1280x720, GUI scale 3)

Before (the issue's screenshot, #812): https://github.com/user-attachments/assets/40f3de9f-5cc7-472d-b511-168e3837a7f9

Classic Extras, top Classic Extras, middle Classic Extras, bottom

Reference, Classic Video Settings (vanilla's layout of headings and pairs):

Horizon page before (every row) after, everything off after, Zoom on

The Horizon page follows docs/design-system.md: same rows, section labels and switches, only fewer of them.

How tested

New test extras_settings_nest_under_their_switch; the classic Extras test still counts every item. docs/extras.md says where the nesting lives.

Fixes #812
Fixes #815

Self-check (Mac mini, one integration commit of the five Q1 PRs on origin/main 2d586fac)

  • cargo fmt --all --check: clean
  • set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings: clean (no warnings, no errors)
  • cargo test -p horizon-client: lib 962 passed (14 ignored), main 84 passed, horizon-ctl 15 passed, integration tests 7 passed
  • tools/parity.py --changed origin/main: all 101 affected harnesses pass (secure_chat failed once in the batch run, which reused cached oracle results, then passed when rerun alone)

Needs Ludovic

Whether hiding a switch's settings while it is off is the nesting he wants for #815 (the alternative is sub-pages per extra).

🤖 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/1122 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/classic-extras-pairs` --- ### 📝 Commits (1) - [`7e82252`](https://github.com/horizon-rust/horizon/commit/7e82252f1246978663fb74aeac0cc1df053aa3ff) Extras: classic switches two to a row; settings nest under their switch ### 📊 Changes **4 files changed** (+99 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/extras.rs` (+16 -1) 📝 `crates/horizon-client/src/options_horizon.rs` (+44 -1) 📝 `crates/horizon-client/src/options_ui.rs` (+34 -15) 📝 `docs/extras.md` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What - **Classic** Horizon Extras: each section's buttons are two to a row (150 wide), as vanilla's `OptionsList.addSmall` lays out an options screen and as Classic Video Settings already does. The section headings stay. "Lower sensitivity while zoomed" is now "Slower turning" so it fits a half-width button (it scrolled before). - **Horizon** Extras page: an extra's own settings nest under its switch and show only while it is on (`extras::Item::parent`). With everything off (the default) the page is one row per extra: Fullbright, Zoom, Minimap, FPS counter, Keystrokes, Mouse Tweaks controls, Sort buttons, Auto-reconnect. Each sub-setting does nothing while its switch is off (checked in game/tweaks.rs and game/extras.rs), so hiding it changes no behaviour. Classic keeps every button, as vanilla screens do. ## Why #812 (rdbtCVS): the classic screen was one full-width button per row. #815 (LookImEcho-Rick, from Rick Thiccms on Discord): "nest the settings in the Extras menu before it gets too messy". The sections were already there; this nests each extra's settings under its switch. ## Screenshots (Mac mini, `--offscreen`, 1280x720, GUI scale 3) Before (the issue's screenshot, #812): https://github.com/user-attachments/assets/40f3de9f-5cc7-472d-b511-168e3837a7f9 | Classic Extras, top | Classic Extras, middle | Classic Extras, bottom | |---|---|---| | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-classic-top.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-classic-middle.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-classic-bottom.png) | Reference, Classic Video Settings (vanilla's layout of headings and pairs): ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/video-classic-reference.png) | Horizon page before (every row) | after, everything off | after, Zoom on | |---|---|---| | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-horizon-before.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-horizon-all-off.png) | ![](https://raw.githubusercontent.com/ludovic111/horizon/df8e90c432d92d3c3eca2de4c7be805602876876/q1/extras-horizon-zoom-on.png) | The Horizon page follows docs/design-system.md: same rows, section labels and switches, only fewer of them. ## How tested New test `extras_settings_nest_under_their_switch`; the classic Extras test still counts every item. docs/extras.md says where the nesting lives. Fixes #812 Fixes #815 ## Self-check (Mac mini, one integration commit of the five Q1 PRs on origin/main 2d586fac) - `cargo fmt --all --check`: clean - `set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings`: clean (no warnings, no errors) - `cargo test -p horizon-client`: lib 962 passed (14 ignored), main 84 passed, horizon-ctl 15 passed, integration tests 7 passed - `tools/parity.py --changed origin/main`: all 101 affected harnesses pass (secure_chat failed once in the batch run, which reused cached oracle results, then passed when rerun alone) ## Needs Ludovic Whether hiding a switch's settings while it is off is the nesting he wants for #815 (the alternative is sub-pages per extra). 🤖 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-02 16:01:14 +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#3066
No description provided.