[PR #3987] [MERGED] HDR: a shortcut key to its settings, unbound by default #5337

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3987
Author: @senjinthedragon
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: hdr-shortcut


📝 Commits (2)

  • 0a8ac2e HDR: a shortcut key to its settings, unbound by default
  • 7b98a22 HDR shortcut: Done goes back to the game, not the pause menu

📊 Changes

7 files changed (+95 additions, -8 deletions)

View changed files

📝 crates/horizon-client-render/src/graphics.rs (+17 -1)
📝 crates/horizon-client-render/src/graphics_ui.rs (+27 -1)
📝 crates/horizon-client-render/src/options_ui.rs (+14 -2)
📝 crates/horizon-client/src/game.rs (+5 -2)
📝 crates/horizon-client/src/game/options.rs (+6 -1)
📝 crates/horizon-client/src/game/tweaks.rs (+25 -0)
📝 docs/graphics.md (+1 -1)

📄 Description

🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally.

What and why

Follows #3203 (HDR's own screen). Adjusting HDR is easiest while looking at the game, so Graphics: HDR gets a
Shortcut row: bind a key (or mouse button) and it opens HDR's settings straight from the game. Unbound by
default
, so nothing changes for anyone who doesn't set it.

  • Saved as hdrKey in horizon-graphics.txt (never in options.txt, which stays vanilla's); bound the way the
    Controls screen binds keys (Action::BindKey, Graphics::set_key).
  • Only in a world, only where HDR is offered. Done returns to the game and takes the mouse again, not to the
    pause menu (options_to_game, as options_to_world_options does for Chat Settings).

Tested on KWin (Plasma 6): binding, opening from the game, Done back into the game.

Vanilla reference

Horizon-only (Horizon's graphics settings). Vanilla's controls and options.txt are unchanged.

Self-check

tools/pr_ready.py --quick: 7 files, +95 −8; rustfmt, clippy and 1427 tests (horizon-client, horizon-client-render) pass.

🤖 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/3987 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `hdr-shortcut` --- ### 📝 Commits (2) - [`0a8ac2e`](https://github.com/horizon-rust/horizon/commit/0a8ac2e89c245c68add6c6ff47dc6d0c0b5791b3) HDR: a shortcut key to its settings, unbound by default - [`7b98a22`](https://github.com/horizon-rust/horizon/commit/7b98a22fe1f83d6e18718fa4f850bb9090b35242) HDR shortcut: Done goes back to the game, not the pause menu ### 📊 Changes **7 files changed** (+95 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/graphics.rs` (+17 -1) 📝 `crates/horizon-client-render/src/graphics_ui.rs` (+27 -1) 📝 `crates/horizon-client-render/src/options_ui.rs` (+14 -2) 📝 `crates/horizon-client/src/game.rs` (+5 -2) 📝 `crates/horizon-client/src/game/options.rs` (+6 -1) 📝 `crates/horizon-client/src/game/tweaks.rs` (+25 -0) 📝 `docs/graphics.md` (+1 -1) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why Follows #3203 (HDR's own screen). Adjusting HDR is easiest while looking at the game, so Graphics: HDR gets a **Shortcut** row: bind a key (or mouse button) and it opens HDR's settings straight from the game. **Unbound by default**, so nothing changes for anyone who doesn't set it. - Saved as `hdrKey` in `horizon-graphics.txt` (never in `options.txt`, which stays vanilla's); bound the way the Controls screen binds keys (`Action::BindKey`, `Graphics::set_key`). - Only in a world, only where HDR is offered. **Done** returns to the game and takes the mouse again, not to the pause menu (`options_to_game`, as `options_to_world_options` does for Chat Settings). Tested on KWin (Plasma 6): binding, opening from the game, Done back into the game. ## Vanilla reference Horizon-only (Horizon's graphics settings). Vanilla's controls and `options.txt` are unchanged. ## Self-check `tools/pr_ready.py --quick`: 7 files, +95 −8; rustfmt, clippy and 1427 tests (horizon-client, horizon-client-render) pass. 🤖 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:11:53 +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#5337
No description provided.