[PR #3826] [MERGED] Splitscreen: the profile page ("Who's playing?"), as a model #5235

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3826
Author: @martipops
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: split/10-profile-page


📝 Commits (8)

  • 482adff Splitscreen: the profile page ("Who's playing?"), as a model
  • 77682df Merge remote-tracking branch 'upstream/main' into split/10-profile-page
  • c7b5e41 Merge upstream main into the profile page
  • ad604ad Merge remote-tracking branch 'upstream/main' into split/10-profile-page
  • f68140d Splitscreen profile page: show the last page there is after a Forget
  • 5726f5a Merge upstream main into split/10-profile-page
  • 98e1976 Merge origin/main; Escape on the profile list counts as Cancel
  • 7fc284b Merge origin/main (picks up #5251's compile fixes)

📊 Changes

6 files changed (+770 additions, -5 deletions)

View changed files

📝 crates/horizon-client-render/src/lib.rs (+1 -0)
📝 crates/horizon-client-render/src/options_ui.rs (+49 -2)
➕ crates/horizon-client-render/src/split_profiles.rs (+625 -0)
➕ crates/horizon-client-render/src/split_profiles/store.rs (+90 -0)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+2 -0)
📝 crates/horizon-client/src/lib.rs (+3 -3)

📄 Description

🤖 Opened by martipops's AI agent (Claude), not by martipops themselves.

Blocked by: none (independent: only horizon-client-render)

What and why

Part of the splitscreen series (#3541). The page a joining splitscreen player picks its profile
on ("Who's playing?"), as a model in horizon-client-render/src/split_profiles.rs with its own
tests, like #3775's layout, and the profile store it reads (split_profiles/store.rs):

  • profiles are names kept in the game folder, splitscreen/profiles/<name>/, each with its own
    options; four to a page, Previous and Next;
  • New Profile...: a player name a server takes (3 to 16 letters, digits or underscores), not one
    on the list already;
  • forgetting a profile hides it (.hidden); its settings and folder are kept, and making it
    again brings it back;
  • a profile already playing can't be picked; a pick the game refuses shows why on the page;
  • controller glyphs and keys work on it as on the other options pages; state() for horizon-ctl.

options_ui gains the page (Page::SplitProfiles), and greys Language and Resource Packs in
another player's options (split_guest): they're the whole process's, P1's to change.

Nothing opens it yet; the game side (a joining player picks before entering P1's world) is the
part after #3801's windows part. Normal play is unchanged.

Suggested label: skip-release.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on marm, against upstream/main at e3cbe2688, 2 min 23 s)

Check Result
Scope ⚠️ 5 files, +740 −4; 744 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 423 passed (26 s)
rustfmt ✅ (4 s)
clippy ✅ (44 s)
tests: horizon-client, horizon-client-render ✅ 1422 passed (51 s)
doc tests ✅ 0 passed (18 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)

8 unit tests: a notice wraps between words; every profile can be picked across pages; profile
names are player names; the bin asks, then forgets a free profile; the one playing now is marked
and can't be picked; a pick clears the last refusal and Cancel closes; a new name must be new and
valid; the store's hide and restore keep the settings.

🤖 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/3826 **Author:** [@martipops](https://github.com/martipops) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `split/10-profile-page` --- ### 📝 Commits (8) - [`482adff`](https://github.com/horizon-rust/horizon/commit/482adff394ba63d69558787986734b3d496e30ae) Splitscreen: the profile page ("Who's playing?"), as a model - [`77682df`](https://github.com/horizon-rust/horizon/commit/77682df7e921f4410633dc2c6aaa108849ad4949) Merge remote-tracking branch 'upstream/main' into split/10-profile-page - [`c7b5e41`](https://github.com/horizon-rust/horizon/commit/c7b5e41cbf3e9a7fc9acc6436a45d0272908c2bb) Merge upstream main into the profile page - [`ad604ad`](https://github.com/horizon-rust/horizon/commit/ad604ad63027422b68b6de9b1c117d9f9b2205c7) Merge remote-tracking branch 'upstream/main' into split/10-profile-page - [`f68140d`](https://github.com/horizon-rust/horizon/commit/f68140d0e53615798961fb220167d596724142f2) Splitscreen profile page: show the last page there is after a Forget - [`5726f5a`](https://github.com/horizon-rust/horizon/commit/5726f5a551530ee9e77fe84c035bb4e89513682f) Merge upstream main into split/10-profile-page - [`98e1976`](https://github.com/horizon-rust/horizon/commit/98e1976db1067db9f1b7dc2ef16b617e4cc457b8) Merge origin/main; Escape on the profile list counts as Cancel - [`7fc284b`](https://github.com/horizon-rust/horizon/commit/7fc284b46a111ebe3a1e4dd6098c4a3ad4b06298) Merge origin/main (picks up #5251's compile fixes) ### 📊 Changes **6 files changed** (+770 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/lib.rs` (+1 -0) 📝 `crates/horizon-client-render/src/options_ui.rs` (+49 -2) ➕ `crates/horizon-client-render/src/split_profiles.rs` (+625 -0) ➕ `crates/horizon-client-render/src/split_profiles/store.rs` (+90 -0) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+2 -0) 📝 `crates/horizon-client/src/lib.rs` (+3 -3) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Claude), not by martipops themselves. **Blocked by:** none (independent: only horizon-client-render) ## What and why Part of the splitscreen series (#3541). The page a joining splitscreen player picks its profile on ("Who's playing?"), as a model in `horizon-client-render/src/split_profiles.rs` with its own tests, like #3775's layout, and the profile store it reads (`split_profiles/store.rs`): - profiles are names kept in the game folder, `splitscreen/profiles/<name>/`, each with its own options; four to a page, Previous and Next; - New Profile...: a player name a server takes (3 to 16 letters, digits or underscores), not one on the list already; - forgetting a profile hides it (`.hidden`); its settings and folder are kept, and making it again brings it back; - a profile already playing can't be picked; a pick the game refuses shows why on the page; - controller glyphs and keys work on it as on the other options pages; `state()` for horizon-ctl. `options_ui` gains the page (`Page::SplitProfiles`), and greys Language and Resource Packs in another player's options (`split_guest`): they're the whole process's, P1's to change. Nothing opens it yet; the game side (a joining player picks before entering P1's world) is the part after #3801's windows part. Normal play is unchanged. Suggested label: `skip-release`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on marm, against upstream/main at e3cbe2688, 2 min 23 s) | Check | Result | | --- | --- | | Scope | ⚠️ 5 files, +740 −4; 744 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 423 passed (26 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (44 s) | | tests: horizon-client, horizon-client-render | ✅ 1422 passed (51 s) | | doc tests | ✅ 0 passed (18 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) | 8 unit tests: a notice wraps between words; every profile can be picked across pages; profile names are player names; the bin asks, then forgets a free profile; the one playing now is marked and can't be picked; a pick clears the last refusal and Cancel closes; a new name must be new and valid; the store's hide and restore keep the settings. 🤖 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:10 +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#5235
No description provided.