[PR #1260] [CLOSED] Shader Packs page: the picked pack's options #3463

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1260
Author: @ludovic111
Created: 10/22/2026
Status: ❌ Closed

Base: main ← Head: feat/shader-pack-options


📝 Commits (1)

  • c98b143 Shader Packs page: the picked pack's options

📊 Changes

5 files changed (+247 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/shader_packs.rs (+2 -2)
📝 crates/horizon-client/src/options_horizon.rs (+134 -2)
📝 crates/horizon-client/src/options_ui.rs (+4 -0)
📝 crates/horizon-client/src/shader_pack.rs (+104 -0)
📝 docs/shader-packs.md (+3 -0)

📄 Description

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

What

The Shader Packs section of the Horizon menus now shows the picked Horizon pack's options under its row:

  • true/false options: a switch;
  • integer options with values: a button that cycles through them (right click goes back);
  • numbers (min/max/step): a slider; a click on the row beside the slider moves one step.

A change is written to shaderpacks/<pack>.txt at once (the file Iris uses too). That file now counts in the pack's stamp (Stamp::of_pack), so the game sees it change and loads the pack again with the new values, the same way an edited pack file reloads.

Small and functional on purpose: a separate agent is about to restyle the launcher, and this only adds one row kind to the existing page, with the existing switch/button/slider widgets.

Not in this PR

  • The Classic menus' Shader Packs page lists packs only (no options yet).
  • Java packs' option screens (shaders.properties screens and profiles) stay as before (FEATURES.md 4n(c)).

Checks

  • cargo fmt --check, cargo clippy -p horizon-client --all-targets -- -D warnings: clean.
  • cargo test -p horizon-client shader_pack: 9 passed, including the extended shader_packs_section_opens_the_folder_and_picks_a_pack (a pack's options show under it once picked; switching one writes strength=0.5\nvignette=false to Mine.txt) and saved_option_values_change_the_pack_stamp.
  • Independent of #1261 and #1262 (the Horizon shaders v1 PRs); git merge-tree of this branch with them is clean.
  • Not screenshotted: the Mac mini's session is locked and the game started from a scratch home came up in the Classic menus.

🤖 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/1260 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/shader-pack-options` --- ### 📝 Commits (1) - [`c98b143`](https://github.com/horizon-rust/horizon/commit/c98b1438cb89f2cc08a8dc6943b0c896aa22cc46) Shader Packs page: the picked pack's options ### 📊 Changes **5 files changed** (+247 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/shader_packs.rs` (+2 -2) 📝 `crates/horizon-client/src/options_horizon.rs` (+134 -2) 📝 `crates/horizon-client/src/options_ui.rs` (+4 -0) 📝 `crates/horizon-client/src/shader_pack.rs` (+104 -0) 📝 `docs/shader-packs.md` (+3 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What The Shader Packs section of the Horizon menus now shows the **picked Horizon pack's options** under its row: - `true`/`false` options: a switch; - integer options with `values`: a button that cycles through them (right click goes back); - numbers (`min`/`max`/`step`): a slider; a click on the row beside the slider moves one step. A change is written to `shaderpacks/<pack>.txt` at once (the file Iris uses too). That file now counts in the pack's stamp (`Stamp::of_pack`), so the game sees it change and loads the pack again with the new values, the same way an edited pack file reloads. Small and functional on purpose: a separate agent is about to restyle the launcher, and this only adds one row kind to the existing page, with the existing switch/button/slider widgets. ## Not in this PR - The Classic menus' Shader Packs page lists packs only (no options yet). - Java packs' option screens (`shaders.properties` screens and profiles) stay as before (FEATURES.md 4n(c)). ## Checks - `cargo fmt --check`, `cargo clippy -p horizon-client --all-targets -- -D warnings`: clean. - `cargo test -p horizon-client shader_pack`: 9 passed, including the extended `shader_packs_section_opens_the_folder_and_picks_a_pack` (a pack's options show under it once picked; switching one writes `strength=0.5\nvignette=false` to `Mine.txt`) and `saved_option_values_change_the_pack_stamp`. - Independent of #1261 and #1262 (the Horizon shaders v1 PRs); `git merge-tree` of this branch with them is clean. - Not screenshotted: the Mac mini's session is locked and the game started from a scratch home came up in the Classic menus. 🤖 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:09:43 +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#3463
No description provided.