[PR #2030] [MERGED] Zoom moved to the mod browser: remove the built-in zoom #3950

Closed
opened 2026-11-03 04:13:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/moved-zoom


📝 Commits (3)

  • d113131 Merge feat/official-zoom-mod into feat/moved-zoom
  • a6c8e90 Zoom moved to the mod browser: remove the built-in zoom
  • e52f0fd Merge main into feat/moved-zoom

📊 Changes

10 files changed (+106 additions, -333 deletions)

View changed files

📝 crates/horizon-client/src/extras.rs (+12 -222)
📝 crates/horizon-client/src/game.rs (+1 -3)
📝 crates/horizon-client/src/game/control.rs (+6 -6)
📝 crates/horizon-client/src/game/extras.rs (+12 -55)
📝 crates/horizon-client/src/game/moved_extras.rs (+7 -0)
📝 crates/horizon-client/src/moved_extras.rs (+45 -5)
📝 crates/horizon-client/src/options_ui.rs (+12 -10)
📝 docs/extras.md (+9 -30)
📝 website/docs/index.md (+1 -1)
📝 website/docs/settings.md (+1 -1)

📄 Description

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

Stacked on #2023 (the official Zoom mod) and #1995 (the moved extras' migration). Their branches are merged into this one. Review only the last commit (Zoom moved to the mod browser: remove the built-in zoom). Until those merge, the diff also shows their commits. Merge after #2023 is published in the registry, as #1995 waits for the FPS counter and Keystrokes.

Zoom is the third extra to move to the mod browser. The official Zoom mod (#2023) is pixel-identical to the built-in zoom and costs the same per frame. This PR removes the built-in zoom and moves its players over.

What players get

  • A player who had zoom on gets the Zoom mod at the first start after the update: installed from the registry, turned on, and one chat line, "Zoom moved to the mod browser: installed for you". This is #1995's migration, with Zoom added.
    • Their settings carry over into the mod's storage: starting zoom (level), smooth zoom (smooth), slower turning (sensitivity).
    • A key they had changed from Z carries over into horizon-mods.txt (key.zoom.zoom), unless they already chose one for the mod.
  • Options > Horizon Settings > Extras loses Zoom's five rows (Zoom, Zoom key, Starting zoom, Smooth zoom, Slower turning).
  • A player who had zoom off gets nothing installed. Zoom is marked as moved, so later starts do nothing.
  • horizon-extras.txt keeps the old zoom* keys, so the migration can still read them, and movedToMods lists zoom once it is done.

What goes

  • The extra's zoom state, its key and wheel hooks, and its Extras rows.
  • The camera keeps a mod's zoom (render.set-zoom). zoom_now is now the mod's zoom or none.
  • horizon-ctl's mouse actions now reach mods' keys bound to mouse buttons, as the window's do. The extra used to catch those itself.
  • docs/extras.md and the website's settings page list Zoom with the FPS counter and Keystrokes under the extras moved to the mod browser. The website page didn't mention that move yet either.

How tested

  • In game, migration, with fresh HORIZON_HOME/XDG folders and HORIZON_NO_AUDIO=1. The game is on its server thread and installs from a trial index that serves the three official mods. 27/27 checks:
    • Case D starts with zoom on at 8x, smooth off and key X:
      • the chat line appears, the mod is installed and on, and horizon-mods.txt has key.zoom.zoom:key.keyboard.x;
      • storage is level 8, smooth false, sensitivity true;
      • holding X turns the view 1/8 as far (it zooms 8x), and Z does nothing;
      • the Extras page has no zoom rows;
      • a second start shows no chat line and keeps the key.
    • #1995's cases still pass: FPS and Keystrokes on, offline then online, everything off. movedToMods now lists all three.
  • Unit tests: Zoom's settings, and its key only when the player had changed it (moved_extras). The Extras page tests now use the sort key for the "bind a key" path. The Extras page test now scrolls in a shorter window, because the page fits 480 px without Zoom's rows.

Self-check against the merge of #1995 and #2023:

pr_ready (tools/pr_ready.py --quick --base d113131f7 on ludovics-mac-mini, against d113131f7 at d113131f7, 8 min 50 s)

Check Result
Scope ✅ 10 files, +106 −333
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (11 s)
clippy ✅ (2 min 16 s)
tests: horizon-client ✅ 1260 passed (4 min 56 s)
doc tests ✅ 0 passed (7 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 27 affected, to run in CI (--quick): block_removal, chat_screen, command_exec, command_parse, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, mace and 15 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

No label, as for the other removals: players keep the same zoom, now from the mod browser.

🤖 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/2030 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/moved-zoom` --- ### 📝 Commits (3) - [`d113131`](https://github.com/horizon-rust/horizon/commit/d113131f7ef65fb378ebc84323e67009dab02274) Merge feat/official-zoom-mod into feat/moved-zoom - [`a6c8e90`](https://github.com/horizon-rust/horizon/commit/a6c8e9070a6557470bab6ba08fd31ca8ec9ad88a) Zoom moved to the mod browser: remove the built-in zoom - [`e52f0fd`](https://github.com/horizon-rust/horizon/commit/e52f0fdcc2660dbe95e30d346e062e9c1d209d1b) Merge main into feat/moved-zoom ### 📊 Changes **10 files changed** (+106 additions, -333 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/extras.rs` (+12 -222) 📝 `crates/horizon-client/src/game.rs` (+1 -3) 📝 `crates/horizon-client/src/game/control.rs` (+6 -6) 📝 `crates/horizon-client/src/game/extras.rs` (+12 -55) 📝 `crates/horizon-client/src/game/moved_extras.rs` (+7 -0) 📝 `crates/horizon-client/src/moved_extras.rs` (+45 -5) 📝 `crates/horizon-client/src/options_ui.rs` (+12 -10) 📝 `docs/extras.md` (+9 -30) 📝 `website/docs/index.md` (+1 -1) 📝 `website/docs/settings.md` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **Stacked on #2023** (the official Zoom mod) **and #1995** (the moved extras' migration). Their branches are merged into this one. Review only the last commit (`Zoom moved to the mod browser: remove the built-in zoom`). Until those merge, the diff also shows their commits. Merge after #2023 is published in the registry, as #1995 waits for the FPS counter and Keystrokes. Zoom is the third extra to move to the mod browser. The official Zoom mod (#2023) is pixel-identical to the built-in zoom and costs the same per frame. This PR removes the built-in zoom and moves its players over. ## What players get - **A player who had zoom on** gets the Zoom mod at the first start after the update: installed from the registry, turned on, and one chat line, "Zoom moved to the mod browser: installed for you". This is #1995's migration, with Zoom added. - Their settings carry over into the mod's storage: starting zoom (`level`), smooth zoom (`smooth`), slower turning (`sensitivity`). - A key they had changed from Z carries over into `horizon-mods.txt` (`key.zoom.zoom`), unless they already chose one for the mod. - **Options > Horizon Settings > Extras** loses Zoom's five rows (Zoom, Zoom key, Starting zoom, Smooth zoom, Slower turning). - **A player who had zoom off** gets nothing installed. Zoom is marked as moved, so later starts do nothing. - `horizon-extras.txt` keeps the old `zoom*` keys, so the migration can still read them, and `movedToMods` lists `zoom` once it is done. ## What goes - The extra's zoom state, its key and wheel hooks, and its Extras rows. - The camera keeps a mod's zoom (`render.set-zoom`). `zoom_now` is now the mod's zoom or none. - horizon-ctl's `mouse` actions now reach mods' keys bound to mouse buttons, as the window's do. The extra used to catch those itself. - `docs/extras.md` and the website's settings page list Zoom with the FPS counter and Keystrokes under the extras moved to the mod browser. The website page didn't mention that move yet either. ## How tested - **In game, migration, with fresh `HORIZON_HOME`/XDG folders and `HORIZON_NO_AUDIO=1`.** The game is on its server thread and installs from a trial index that serves the three official mods. 27/27 checks: - Case D starts with zoom on at 8x, smooth off and key X: - the chat line appears, the mod is installed and on, and `horizon-mods.txt` has `key.zoom.zoom:key.keyboard.x`; - storage is `level 8`, `smooth false`, `sensitivity true`; - holding X turns the view 1/8 as far (it zooms 8x), and Z does nothing; - the Extras page has no zoom rows; - a second start shows no chat line and keeps the key. - #1995's cases still pass: FPS and Keystrokes on, offline then online, everything off. `movedToMods` now lists all three. - **Unit tests:** Zoom's settings, and its key only when the player had changed it (`moved_extras`). The Extras page tests now use the sort key for the "bind a key" path. The Extras page test now scrolls in a shorter window, because the page fits 480 px without Zoom's rows. **Self-check** against the merge of #1995 and #2023: **pr_ready** (`tools/pr_ready.py --quick --base d113131f7` on ludovics-mac-mini, against d113131f7 at d113131f7, 8 min 50 s) | Check | Result | | --- | --- | | Scope | ✅ 10 files, +106 −333 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (11 s) | | clippy | ✅ (2 min 16 s) | | tests: horizon-client | ✅ 1260 passed (4 min 56 s) | | doc tests | ✅ 0 passed (7 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 27 affected, to run in CI (--quick): block_removal, chat_screen, command_exec, command_parse, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, mace and 15 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | No label, as for the other removals: players keep the same zoom, now from the mod browser. 🤖 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 04:13:32 +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#3950
No description provided.