[PR #2971] [MERGED] Add the Skin and Online options pages, the missing Sound rows, and Distortion Effects #4725

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2971
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/skin-online-sound-options


📝 Commits (6)

  • 206b7ac Add the Skin Customisation options page and hide skin layers
  • e9fbcfe Add the Online options page with Allow Server Listing
  • ba37fa7 Add the Directional Audio and Music Toast sound rows
  • 736842d Unlock the Distortion Effects slider
  • b9449b2 Merge main into fix/skin-online-sound-options
  • fb27a63 Merge main into this branch

📊 Changes

8 files changed (+186 additions, -38 deletions)

View changed files

📝 crates/horizon-client-render/src/options_file.rs (+9 -0)
📝 crates/horizon-client-render/src/options_ui.rs (+118 -19)
📝 crates/horizon-client-render/src/settings.rs (+20 -0)
📝 crates/horizon-client/src/game/lan.rs (+1 -0)
📝 crates/horizon-client/src/game/perspective.rs (+1 -0)
📝 crates/horizon-client/src/game/remote.rs (+20 -19)
📝 crates/horizon-client/src/mobs.rs (+3 -0)
📝 crates/horizon-client/src/mobs/anim.rs (+14 -0)

📄 Description

What and why

  • Skin Customisation: the seven skin layers and Main Hand were saved but had no page, so the row did nothing. The row now opens a page with them. The player model hides the layers that are off, and the choice goes to servers in ClientInformation. Horizon used to send fixed defaults there, so Main Hand and the layers now come from settings. Other players' layers follow their synced data.
  • Online: the Online button opens a page with Allow Server Listing (live, sent to servers), and In-Game Notifications, Share Presence and Realms Notifications. These three are shown greyed out, because Horizon has no friends list or Realms to read them. The Xbox and friends-list parts are left out.
  • Sound: Directional Audio and Music Toast rows are added, greyed out, because nothing in the audio code reads them yet. Audio Device is skipped: Horizon opens the default output and cannot switch devices.
  • Distortion Effects: no longer greyed out and its slider now moves and saves screenEffectScale. Mod camera shakes read the setting already. The level spin and the nausea swirl that it scales are fed by the Nausea PR (fix/player-nausea-eyeblossom), which also makes the render tick read this option, so this PR does not touch render_tick.rs.

Vanilla reference

  • SkinCustomizationScreen.java:16-34; PlayerModelPart.java; Avatar.java:61-63 (isModelPartShown); AvatarRenderer.java:183-189; PlayerModel.java:117-122
  • OnlineOptionsScreen.java:88-121
  • SoundOptionsScreen.java:22-26
  • Options.java:350-357 (mainHand), 535-549 (realms, server listing, in-game notification, presence), 567 (directional audio), 849-858 (screen effect scale), 1004-1012 (music toast), 1692-1695 (modelPart_*)
  • Avatar synced data: DATA_PLAYER_MODE_CUSTOMISATION is index 16, after DATA_PLAYER_MAIN_HAND at 15

Self-check

clippy and fmt pass for horizon-client (clippy with -D warnings, all targets). Not run in game.


🔄 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/2971 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/skin-online-sound-options` --- ### 📝 Commits (6) - [`206b7ac`](https://github.com/horizon-rust/horizon/commit/206b7acee4d9d81bf6a4ee4c880780e25d55081c) Add the Skin Customisation options page and hide skin layers - [`e9fbcfe`](https://github.com/horizon-rust/horizon/commit/e9fbcfef78b4c55b94157d2b270e5839f519158e) Add the Online options page with Allow Server Listing - [`ba37fa7`](https://github.com/horizon-rust/horizon/commit/ba37fa75d69e22ea036650c3cb0d0499394c5a27) Add the Directional Audio and Music Toast sound rows - [`736842d`](https://github.com/horizon-rust/horizon/commit/736842d40f268d0c01fc0106a5a4285229b7051f) Unlock the Distortion Effects slider - [`b9449b2`](https://github.com/horizon-rust/horizon/commit/b9449b2348298923764a4b3a4a0027da7aa05a6a) Merge main into fix/skin-online-sound-options - [`fb27a63`](https://github.com/horizon-rust/horizon/commit/fb27a63dcedaa664082c4f330ad207a289f4b643) Merge main into this branch ### 📊 Changes **8 files changed** (+186 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_file.rs` (+9 -0) 📝 `crates/horizon-client-render/src/options_ui.rs` (+118 -19) 📝 `crates/horizon-client-render/src/settings.rs` (+20 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+1 -0) 📝 `crates/horizon-client/src/game/perspective.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+20 -19) 📝 `crates/horizon-client/src/mobs.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/anim.rs` (+14 -0) </details> ### 📄 Description ## What and why - Skin Customisation: the seven skin layers and Main Hand were saved but had no page, so the row did nothing. The row now opens a page with them. The player model hides the layers that are off, and the choice goes to servers in ClientInformation. Horizon used to send fixed defaults there, so Main Hand and the layers now come from settings. Other players' layers follow their synced data. - Online: the Online button opens a page with Allow Server Listing (live, sent to servers), and In-Game Notifications, Share Presence and Realms Notifications. These three are shown greyed out, because Horizon has no friends list or Realms to read them. The Xbox and friends-list parts are left out. - Sound: Directional Audio and Music Toast rows are added, greyed out, because nothing in the audio code reads them yet. Audio Device is skipped: Horizon opens the default output and cannot switch devices. - Distortion Effects: no longer greyed out and its slider now moves and saves `screenEffectScale`. Mod camera shakes read the setting already. The level spin and the nausea swirl that it scales are fed by the Nausea PR (`fix/player-nausea-eyeblossom`), which also makes the render tick read this option, so this PR does not touch `render_tick.rs`. ## Vanilla reference - SkinCustomizationScreen.java:16-34; PlayerModelPart.java; Avatar.java:61-63 (isModelPartShown); AvatarRenderer.java:183-189; PlayerModel.java:117-122 - OnlineOptionsScreen.java:88-121 - SoundOptionsScreen.java:22-26 - Options.java:350-357 (mainHand), 535-549 (realms, server listing, in-game notification, presence), 567 (directional audio), 849-858 (screen effect scale), 1004-1012 (music toast), 1692-1695 (modelPart_*) - Avatar synced data: DATA_PLAYER_MODE_CUSTOMISATION is index 16, after DATA_PLAYER_MAIN_HAND at 15 ## Self-check clippy and fmt pass for horizon-client (clippy with -D warnings, all targets). Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:29 +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#4725
No description provided.