[PR #7330] [MERGED] Add native FOV modifier hook #7499

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7330
Author: @Xmilon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: native/fov-modifier-tooltip


📝 Commits (7)

📊 Changes

7 files changed (+86 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/fov.rs (+26 -3)
📝 crates/horizon-client/src/game/native_hooks.rs (+10 -0)
📝 crates/horizon-client/src/mod_api.rs (+1 -1)
📝 crates/horizon-client/src/mod_api/generated.rs (+30 -0)
📝 docs/native-mods.md (+2 -0)
➕ tools/native-hook-fragments/compute_fov_modifier.json (+16 -0)
📝 xtask/src/mod_api.rs (+1 -0)

📄 Description

🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally.

Part of #7303 (stays open: the tooltip texture hook is not in this PR: tooltip boxes have several draw paths and use solid fills, not selectable sprites)

Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon.

Adds the client per-tick FOV modifier hook, exposing the computed player inputs and original scale and rejecting non-finite or out-of-range replacements. Follows AbstractClientPlayer.getFieldOfViewModifier and Camera.tick.

Tooltip texture is not implemented: tooltip boxes are drawn through multiple call paths and currently use solid fills rather than background/frame sprites, so there is no single sprite-based draw point to hook.

Checks: cargo fmt --all, git diff --check, cargo run -p xtask -- mod-api and --check. No client build, cargo test, or in-game verification was run.

🤖 Generated with Claude Code orchestrating GPT-6.1 Terra.


🔄 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/7330 **Author:** [@Xmilon](https://github.com/Xmilon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `native/fov-modifier-tooltip` --- ### 📝 Commits (7) - [`297b0c9`](https://github.com/horizon-rust/horizon/commit/297b0c9b56b71e81604dd131d587324e9d03b691) Add native FOV modifier hook - [`74d9b28`](https://github.com/horizon-rust/horizon/commit/74d9b28dd373b01420434206d96f4262a8e03744) Native mods: drop the fragment's comments entry, the stamper edits the docs itself - [`838f532`](https://github.com/horizon-rust/horizon/commit/838f5324802dbc3ff4eafb65d59b8dda2178e021) Merge main into #7330 - [`19a4348`](https://github.com/horizon-rust/horizon/commit/19a4348d7ca0e12877a98152217a4ff1526d0596) Merge upstream/main - [`1d07a53`](https://github.com/horizon-rust/horizon/commit/1d07a530d21c13830e2de934ac0be9474d7a6eb9) xtask: the generated-code stub knows FovPlayer - [`ab1a992`](https://github.com/horizon-rust/horizon/commit/ab1a99297370103a502c77fb277ff09a53007bfd) Merge main into #7330 - [`f132bcc`](https://github.com/horizon-rust/horizon/commit/f132bcc2ba1a077c6c47751663c36f855173c9d0) Merge #7330's head into the main merge ### 📊 Changes **7 files changed** (+86 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fov.rs` (+26 -3) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+10 -0) 📝 `crates/horizon-client/src/mod_api.rs` (+1 -1) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+30 -0) 📝 `docs/native-mods.md` (+2 -0) ➕ `tools/native-hook-fragments/compute_fov_modifier.json` (+16 -0) 📝 `xtask/src/mod_api.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally. Part of #7303 (stays open: the tooltip texture hook is not in this PR: tooltip boxes have several draw paths and use solid fills, not selectable sprites) Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon. Adds the client per-tick FOV modifier hook, exposing the computed player inputs and original scale and rejecting non-finite or out-of-range replacements. Follows AbstractClientPlayer.getFieldOfViewModifier and Camera.tick. Tooltip texture is not implemented: tooltip boxes are drawn through multiple call paths and currently use solid fills rather than background/frame sprites, so there is no single sprite-based draw point to hook. Checks: cargo fmt --all, git diff --check, cargo run -p xtask -- mod-api and --check. No client build, cargo test, or in-game verification was run. 🤖 Generated with Claude Code orchestrating GPT-6.1 Terra. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:10 +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#7499
No description provided.