[PR #2711] [MERGED] options: sliders apply while dragged and save on release #4558

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2711
Author: @iLostName
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: options-slider-save-on-release


📝 Commits (3)

  • 4119284 options: sliders apply while dragged and save on release
  • 7c58bf0 options: the slider test expects saving on release
  • 39d23ac Merge main into this branch

📊 Changes

4 files changed (+24 additions, -14 deletions)

View changed files

📝 crates/horizon-client-render/src/graphics_ui.rs (+6 -5)
📝 crates/horizon-client-render/src/options_ui.rs (+12 -9)
📝 crates/horizon-client/src/game/options.rs (+3 -0)
📝 crates/horizon-client/src/game/startup_menu.rs (+3 -0)

📄 Description

What and why

Dragging an options slider fast froze the game: every mouse move saved options.txt and the horizon-*.txt files. Sliders now apply while dragged and save once on release.

Vanilla reference

OptionInstance.OptionInstanceSliderButton.applyUnsavedValue applies without Options.save; vanilla saves in OptionsSubScreen.removed.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 12e0094f1, 3 min 37 s)

Check Result
Scope ✅ 11 files, +71 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 331 run, FAILED (failures=2, errors=8, skipped=11) (49 s)
rustfmt ✅ (10 s)
clippy ❌ failed (29 s)
tests: horizon-client ❌ 1151 passed, 2 failed (1 min 53 s)
doc tests ✅ 0 passed (13 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Run on Windows: save::session_lock_is_exclusive, crash::stacks_start_at_the_panicking_frame and the Python tests fail there and are unrelated; clippy stops at the duplicate minecraft:rabbit arm in entity_nbt.rs:502, already on main. Scope counts untracked local files.


🔄 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/2711 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `options-slider-save-on-release` --- ### 📝 Commits (3) - [`4119284`](https://github.com/horizon-rust/horizon/commit/4119284a4f1f31e6db60b6d766e188a762b2d01c) options: sliders apply while dragged and save on release - [`7c58bf0`](https://github.com/horizon-rust/horizon/commit/7c58bf004fb07c93cb3a56da53e8fee6358e47a8) options: the slider test expects saving on release - [`39d23ac`](https://github.com/horizon-rust/horizon/commit/39d23ac2565779c8e56d22b2da39de327308d294) Merge main into this branch ### 📊 Changes **4 files changed** (+24 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/graphics_ui.rs` (+6 -5) 📝 `crates/horizon-client-render/src/options_ui.rs` (+12 -9) 📝 `crates/horizon-client/src/game/options.rs` (+3 -0) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+3 -0) </details> ### 📄 Description ## What and why Dragging an options slider fast froze the game: every mouse move saved `options.txt` and the `horizon-*.txt` files. Sliders now apply while dragged and save once on release. ## Vanilla reference `OptionInstance.OptionInstanceSliderButton.applyUnsavedValue` applies without `Options.save`; vanilla saves in `OptionsSubScreen.removed`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 12e0094f1, 3 min 37 s) | Check | Result | | --- | --- | | Scope | ✅ 11 files, +71 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 331 run, FAILED (failures=2, errors=8, skipped=11) (49 s) | | rustfmt | ✅ (10 s) | | clippy | ❌ failed (29 s) | | tests: horizon-client | ❌ 1151 passed, 2 failed (1 min 53 s) | | doc tests | ✅ 0 passed (13 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Run on Windows: `save::session_lock_is_exclusive`, `crash::stacks_start_at_the_panicking_frame` and the Python tests fail there and are unrelated; clippy stops at the duplicate `minecraft:rabbit` arm in `entity_nbt.rs:502`, already on main. Scope counts untracked local files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:02 +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#4558
No description provided.