[PR #22] [MERGED] Native mods: rest when turned off in Options > Mods #30

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

📋 Pull Request Information

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

Base: main ← Head: feat/native-mods-turn-off


📝 Commits (1)

  • 01e9f9f Native mods: rest when turned off in Options > Mods

📊 Changes

14 files changed (+29 additions, -12 deletions)

View changed files

📝 native/fps-overlay/compatibility.json (+1 -1)
📝 native/fps-overlay/mixins/fps_overlay/horizon-mixin.toml (+1 -1)
📝 native/fps-overlay/mixins/fps_overlay/hud.rs (+4 -0)
📝 native/keystrokes/compatibility.json (+1 -1)
📝 native/keystrokes/mixins/keystrokes/horizon-mixin.toml (+1 -1)
📝 native/keystrokes/mixins/keystrokes/hud.rs (+4 -0)
📝 native/minimap/compatibility.json (+1 -1)
📝 native/minimap/mixins/minimap/horizon-mixin.toml (+1 -1)
📝 native/minimap/mixins/minimap/minimap.rs (+2 -1)
📝 native/zoom/compatibility.json (+1 -1)
📝 native/zoom/mixins/zoom/horizon-mixin.toml (+3 -1)
📝 native/zoom/mixins/zoom/key.rs (+4 -0)
📝 native/zoom/mixins/zoom/wheel.rs (+3 -2)
📝 native/zoom/mixins/zoom/zoom.rs (+2 -1)

📄 Description

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

Stacked on #21 (the move into native/); retarget to main once it merges.

levzzz5154 asked that the built-in Mods page turn native mods on and off. horizon-rust/horizon#3346 (commit 01d0f45) makes a native mod's row toggle:

  • Off writes mod.<id>:false, so the launcher's next Build leaves the mod out.
  • Until then the new helper native_on(id) is false.

The official mods check that helper first in every hook that does something:

  • fps-overlay and keystrokes: the HUD box;
  • minimap: the minimap;
  • zoom: the key, the wheel (the hotbar gets it back) and the zoom. The wheel and zoom hooks now bind game.

The list, settings and click hooks still run, so the row and its settings page stay there to turn the mod back on.

All four are re-pinned to Horizon 01d0f45 (#3346's head), which has native_on.

Checked locally: native.py check all on 01d0f45: ok.

🤖 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-mods/pull/22 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/native-mods-turn-off` --- ### 📝 Commits (1) - [`01e9f9f`](https://github.com/horizon-rust/horizon-mods/commit/01e9f9fc23d1d2d765f5c0a319181371bba67358) Native mods: rest when turned off in Options > Mods ### 📊 Changes **14 files changed** (+29 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `native/fps-overlay/compatibility.json` (+1 -1) 📝 `native/fps-overlay/mixins/fps_overlay/horizon-mixin.toml` (+1 -1) 📝 `native/fps-overlay/mixins/fps_overlay/hud.rs` (+4 -0) 📝 `native/keystrokes/compatibility.json` (+1 -1) 📝 `native/keystrokes/mixins/keystrokes/horizon-mixin.toml` (+1 -1) 📝 `native/keystrokes/mixins/keystrokes/hud.rs` (+4 -0) 📝 `native/minimap/compatibility.json` (+1 -1) 📝 `native/minimap/mixins/minimap/horizon-mixin.toml` (+1 -1) 📝 `native/minimap/mixins/minimap/minimap.rs` (+2 -1) 📝 `native/zoom/compatibility.json` (+1 -1) 📝 `native/zoom/mixins/zoom/horizon-mixin.toml` (+3 -1) 📝 `native/zoom/mixins/zoom/key.rs` (+4 -0) 📝 `native/zoom/mixins/zoom/wheel.rs` (+3 -2) 📝 `native/zoom/mixins/zoom/zoom.rs` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #21 (the move into `native/`); retarget to main once it merges. levzzz5154 asked that the built-in Mods page turn native mods on and off. horizon-rust/horizon#3346 (commit 01d0f45) makes a native mod's row toggle: - Off writes `mod.<id>:false`, so the launcher's next Build leaves the mod out. - Until then the new helper `native_on(id)` is false. The official mods check that helper first in every hook that does something: - fps-overlay and keystrokes: the HUD box; - minimap: the minimap; - zoom: the key, the wheel (the hotbar gets it back) and the zoom. The wheel and zoom hooks now bind `game`. The list, settings and click hooks still run, so the row and its settings page stay there to turn the mod back on. All four are re-pinned to Horizon `01d0f45` (#3346's head), which has `native_on`. **Checked locally:** `native.py check all` on 01d0f45: ok. 🤖 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:02:41 +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-mods#30
No description provided.