[PR #3660] [MERGED] Mods: Options > Mods > Settings opens the mod's page at the title screen #5130

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

📋 Pull Request Information

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

Base: main ← Head: fix/mod-settings-at-title


📝 Commits (1)

  • 9c6325c Mods: Options > Mods > Settings opens the mod's page at the title screen

📊 Changes

2 files changed (+26 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+23 -1)
📝 crates/horizon-client/src/game/mods.rs (+3 -1)

📄 Description

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

Fixes #3648.

What and why

At the title screen, Options > Mods > Settings did nothing. Game::open_mod_screen returned early while self.title was set, and even without that guard the mod screen was never drawn at the title (hud_layers returned the title frame first) nor given clicks or keys (the title arms swallow them). Inside a world it already worked.

Change

  • game/mods.rs: the title guard now only blocks a mod's own screen (ui.open-screen); the settings page is allowed.
  • game.rs: hud_layers draws Screen::Mod at the title like Options; MouseInput and KeyboardInput arms route it ahead of the title arms (Esc and Done return to the mods list as before); menu_blur blurs the panorama behind it.

Horizon-only UI; no vanilla reference applies (vanilla has no mods screen).

Testing

Built with --features mods, a dev build of the official Zoom mod (--dev-mod), driven with horizon-ctl on a scratch HORIZON_HOME:

  • title > Options > Mods: row Zoom 1.0.0: ON (Dev) + Settings.
  • click settings: screen shows Zoom's page (key, starting zoom, smooth zoom, slower turning, Done), panorama blurred behind it.
  • click smooth-zoom: label toggles ON → OFF. Click done: back to the mods list.
  • Opening from inside a world is untouched (same function, guard only loosened for the title).

pr_ready --quick (against origin/main): Python tests ✅ 408, rustfmt ✅, clippy ✅ (also --features mods --all-targets -D warnings), horizon-client tests ✅ 801, doc tests ✅. Parity harnesses not run locally (345 select on a game.rs change); this touches only title/mod UI routing.

🤖 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/3660 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/mod-settings-at-title` --- ### 📝 Commits (1) - [`9c6325c`](https://github.com/horizon-rust/horizon/commit/9c6325c1f8d7d5c3c1bb9acdc31683f8f5684216) Mods: Options > Mods > Settings opens the mod's page at the title screen ### 📊 Changes **2 files changed** (+26 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+23 -1) 📝 `crates/horizon-client/src/game/mods.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Federico's AI agent (Claude), not by Federico himself. Fixes #3648. ## What and why At the title screen, `Options > Mods > Settings` did nothing. `Game::open_mod_screen` returned early while `self.title` was set, and even without that guard the mod screen was never drawn at the title (`hud_layers` returned the title frame first) nor given clicks or keys (the title arms swallow them). Inside a world it already worked. ## Change - `game/mods.rs`: the title guard now only blocks a mod's own screen (`ui.open-screen`); the settings page is allowed. - `game.rs`: `hud_layers` draws `Screen::Mod` at the title like Options; `MouseInput` and `KeyboardInput` arms route it ahead of the title arms (Esc and Done return to the mods list as before); `menu_blur` blurs the panorama behind it. Horizon-only UI; no vanilla reference applies (vanilla has no mods screen). ## Testing Built with `--features mods`, a dev build of the official Zoom mod (`--dev-mod`), driven with `horizon-ctl` on a scratch `HORIZON_HOME`: - title > Options > Mods: row `Zoom 1.0.0: ON (Dev)` + `Settings`. - click `settings`: screen shows Zoom's page (key, starting zoom, smooth zoom, slower turning, Done), panorama blurred behind it. - click `smooth-zoom`: label toggles ON → OFF. Click `done`: back to the mods list. - Opening from inside a world is untouched (same function, guard only loosened for the title). **pr_ready --quick** (against origin/main): Python tests ✅ 408, rustfmt ✅, clippy ✅ (also `--features mods --all-targets -D warnings`), horizon-client tests ✅ 801, doc tests ✅. Parity harnesses not run locally (345 select on a `game.rs` change); this touches only title/mod UI routing. 🤖 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:10:27 +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#5130
No description provided.