[PR #7352] [MERGED] Add native tooltip color hook #7543

Closed
opened 2026-11-03 07:19:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: native/tooltip-color


📝 Commits (5)

  • 3af79be Add native tooltip color hook
  • 1c95d0a Merge upstream/main
  • 42ab8ca Merge upstream/main
  • 0e74afc Merge main into #7352
  • 15d058f Native mods doc: the tooltip_color paragraph before the camera section

📊 Changes

7 files changed (+103 additions, -37 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -1)
📝 crates/horizon-client/src/game/native_hooks.rs (+18 -0)
📝 crates/horizon-client/src/game/native_panel.rs (+1 -2)
📝 crates/horizon-client/src/game/stations.rs (+30 -34)
📝 crates/horizon-client/src/mod_api/generated.rs (+35 -0)
📝 docs/native-mods.md (+3 -0)
➕ tools/native-hook-fragments/tooltip_color.json (+15 -0)

📄 Description

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

Closes #7303

  • Add the client tooltip_color listen hook for mutable ARGB background and top/bottom border colors; text colors stay unchanged.
  • Cover solid-fill item boxes (inventory, creative, trading, chat, recipe book and bundle-selected names), text tooltips and native-screen/panel boxes. Recipe-book item lines lose their stack before drawing, so those events have stack: None.
  • The FOV half is #7330. Sprite textures are not offered by this hook: these tooltip boxes use solid fills. Separate sprite-based ui::tooltip / ui::tooltip_menu screens (including options, title, and other screen widgets) are not covered because they render in the independent client-render layer, without a game hook host; replacing them with fills would change their appearance.
  • Side borders now use the actual top-to-bottom gradient rather than a single midpoint color.

Validation: cargo run -p xtask -- mod-api, cargo run -p xtask -- mod-api --check, cargo fmt, git diff --check. No cold client build, cargo test, or in-game visual check was run.

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

🤖 Generated with OpenAI Codex (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/7352 **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/tooltip-color` --- ### 📝 Commits (5) - [`3af79be`](https://github.com/horizon-rust/horizon/commit/3af79beba766a2e296beef141d9ec8782501931b) Add native tooltip color hook - [`1c95d0a`](https://github.com/horizon-rust/horizon/commit/1c95d0aefdc5a1352d62e6f96b6e92172c57a3ef) Merge upstream/main - [`42ab8ca`](https://github.com/horizon-rust/horizon/commit/42ab8ca1dc120a2849595f6f72f13c3ae772e7f1) Merge upstream/main - [`0e74afc`](https://github.com/horizon-rust/horizon/commit/0e74afc83f29fe37d1694c5fa11860d7a555c2f8) Merge main into #7352 - [`15d058f`](https://github.com/horizon-rust/horizon/commit/15d058f004e7fc6ede5d9df23636a3b474990b0d) Native mods doc: the tooltip_color paragraph before the camera section ### 📊 Changes **7 files changed** (+103 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -1) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+18 -0) 📝 `crates/horizon-client/src/game/native_panel.rs` (+1 -2) 📝 `crates/horizon-client/src/game/stations.rs` (+30 -34) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+35 -0) 📝 `docs/native-mods.md` (+3 -0) ➕ `tools/native-hook-fragments/tooltip_color.json` (+15 -0) </details> ### 📄 Description > 🤖 Opened by Xmilon's AI agent (Claude Code orchestrating GPT-6.1 Terra), not by Xmilon personally. Closes #7303 - Add the client `tooltip_color` listen hook for mutable ARGB background and top/bottom border colors; text colors stay unchanged. - Cover solid-fill item boxes (inventory, creative, trading, chat, recipe book and bundle-selected names), text tooltips and native-screen/panel boxes. Recipe-book item lines lose their stack before drawing, so those events have `stack: None`. - The FOV half is #7330. Sprite textures are not offered by this hook: these tooltip boxes use solid fills. Separate sprite-based `ui::tooltip` / `ui::tooltip_menu` screens (including options, title, and other screen widgets) are not covered because they render in the independent client-render layer, without a game hook host; replacing them with fills would change their appearance. - Side borders now use the actual top-to-bottom gradient rather than a single midpoint color. Validation: `cargo run -p xtask -- mod-api`, `cargo run -p xtask -- mod-api --check`, `cargo fmt`, `git diff --check`. No cold client build, cargo test, or in-game visual check was run. Written by an AI agent (Claude Code orchestrating GPT-6.1 Terra) for Xmilon 🤖 Generated with OpenAI Codex (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 07:19:25 +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#7543
No description provided.