[PR #6397] [MERGED] Splitscreen Setup: dragging, layouts, Names and Identify #6846

Closed
opened 2026-11-03 06:27:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6397
Author: @martipops
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: split/fresh-mouse-controls


📝 Commits (10+)

  • 3a656be Splitscreen Setup: drag players, layouts for 2 and 3, Names, Identify
  • c837c16 Splitscreen Setup tests: drop a helper only the controller tests use
  • db240a1 Enable the saved splitscreen setting in the Setup controls scenario
  • 64148cf Merge the native input ownership fix into Setup controls
  • 14c3a6e Merge portable native mouse fixture updates
  • 79e3c7d Merge current main through the Setup controls stack
  • 902cb75 Merge Setup localization into mouse controls
  • 018e50a Localize mouse Setup controls: Identify, Names, layouts, drag stops, tooltips
  • cdfe9e9 Merge branch 'split/fresh-basic-setup' into split/fresh-mouse-controls
  • 52650fb Merge the Setup PR (main merged) into mouse controls

📊 Changes

11 files changed (+808 additions, -29 deletions)

View changed files

📝 crates/horizon-client-render/src/extras.rs (+22 -1)
📝 crates/horizon-client-render/src/options_ui.rs (+3 -0)
📝 crates/horizon-client-render/src/split_ui.rs (+633 -12)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+21 -1)
📝 crates/horizon-client/assets/horizon/lang/fr_fr.json (+21 -1)
📝 crates/horizon-client/src/game/split.rs (+5 -1)
📝 crates/horizon-client/src/game/split/hud.rs (+7 -2)
📝 crates/horizon-client/src/game/split/setup.rs (+21 -4)
📝 crates/horizon-client/src/game/split/windows.rs (+9 -1)
📝 docs/extras.md (+14 -6)
📝 tools/splitscreen_e2e.py (+52 -0)

📄 Description

🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally.

What and why

Players can drag Setup tiles between windows or monitors, choose how two or three players share a window, show/hide names, and identify which window each view belongs to. Arrangement/layout edits stay in the draft until Apply; Names is saved immediately.

Part 3 of the splitscreen Setup series, on top of #6395 (merged). Replaces closed #4180. Refs #2054 and #3541.

Kind

  • feature: something new for players (listed under New in the release notes)

Suggested label: feature.

Size

11 files, +808 −29. About 320 of those lines are split_ui.rs tests; the code is ~490 lines. It is one feature (the Setup page's mouse controls), so it isn't split further. The next parts, controller pickup (#6398) and servers (#6399), stay drafts until this merges.

Vanilla reference

Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths.

Other projects' code

None. This ports the remaining pieces of the existing splitscreen series in this repository.

Localization

Identify, Names, the layout squares, drag destinations ("Window 1 (2 of 3)") and tooltips, in English and French. The layout glyphs and the Auto tooltip come from the draft's layout index instead of parsing the English label, so translated labels keep their icons.

Validation

  • cargo test -p horizon-client-render --lib split (61 tests), Clippy -D warnings, rustfmt.
  • Live (tools/splitscreen_e2e.py, real windows, macOS Metal): controls passes at this head. Correction (after merge): an earlier version of this line called a setup failure a main regression. It wasn't: the Mac's screen had locked during the run, and macOS stops redrawing locked windows. setup passed on #6395's head. The controls scenario added here drags a player between windows and onto P1, switches top-and-bottom and Auto layouts, and turns Names off. The full suite passed earlier on the series head that contains this part.
  • The author retested mouse focus with a physical controller.
  • Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses).

Self-check

Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6395 merged: main c9343d6d7 merged in, so this diff is this part alone.

pr_ready (tools/pr_ready.py --quick --base refs/hz/main on Mac, against refs/hz/main at c9343d6d7, 4 min 33 s)

Check Result
Scope ⚠️ 11 files, +808 −29; 817 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 609 passed (43 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 23 s)
tests: horizon-client, horizon-client-lib, horizon-client-render ❌ 3062 passed, 1 failed (2 min 6 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
mod API up to date ✅ (13 s)
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)

The one failing test, gfx::entity_skin::tests::the_shader_writes_what_the_cpu_reference_computes, came in with main's 3e642d0ac today (a compute pass that poses entity models). It compares the GPU's vertices to a CPU reference bit for bit and differs in the last bit of a float on this Mac's Metal; this PR doesn't touch gfx.

🤖 Generated with Codex

🤖 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/6397 **Author:** [@martipops](https://github.com/martipops) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `split/fresh-mouse-controls` --- ### 📝 Commits (10+) - [`3a656be`](https://github.com/horizon-rust/horizon/commit/3a656be0a4ca6a68bfa8669c321e1eb97e229d8f) Splitscreen Setup: drag players, layouts for 2 and 3, Names, Identify - [`c837c16`](https://github.com/horizon-rust/horizon/commit/c837c1619fe638bade53caf8200187aab1520664) Splitscreen Setup tests: drop a helper only the controller tests use - [`db240a1`](https://github.com/horizon-rust/horizon/commit/db240a1925db97592713f3ba58a5c4226afff908) Enable the saved splitscreen setting in the Setup controls scenario - [`64148cf`](https://github.com/horizon-rust/horizon/commit/64148cfe72372a19dba758a36f7323f7de20a4d1) Merge the native input ownership fix into Setup controls - [`14c3a6e`](https://github.com/horizon-rust/horizon/commit/14c3a6e42e3d141c2cb7aa24825650a22b47105a) Merge portable native mouse fixture updates - [`79e3c7d`](https://github.com/horizon-rust/horizon/commit/79e3c7dc279c02c94b1d5dc72b3d8e786797d6ef) Merge current main through the Setup controls stack - [`902cb75`](https://github.com/horizon-rust/horizon/commit/902cb754ea0fe006326850b0da204449dc28ad30) Merge Setup localization into mouse controls - [`018e50a`](https://github.com/horizon-rust/horizon/commit/018e50afb0c8bc459a747334b6ef603710927ab1) Localize mouse Setup controls: Identify, Names, layouts, drag stops, tooltips - [`cdfe9e9`](https://github.com/horizon-rust/horizon/commit/cdfe9e9bde01351b1ee1861421de764ec52d7c85) Merge branch 'split/fresh-basic-setup' into split/fresh-mouse-controls - [`52650fb`](https://github.com/horizon-rust/horizon/commit/52650fb1d24a5468e23938014b0af4a09380dae6) Merge the Setup PR (main merged) into mouse controls ### 📊 Changes **11 files changed** (+808 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/extras.rs` (+22 -1) 📝 `crates/horizon-client-render/src/options_ui.rs` (+3 -0) 📝 `crates/horizon-client-render/src/split_ui.rs` (+633 -12) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+21 -1) 📝 `crates/horizon-client/assets/horizon/lang/fr_fr.json` (+21 -1) 📝 `crates/horizon-client/src/game/split.rs` (+5 -1) 📝 `crates/horizon-client/src/game/split/hud.rs` (+7 -2) 📝 `crates/horizon-client/src/game/split/setup.rs` (+21 -4) 📝 `crates/horizon-client/src/game/split/windows.rs` (+9 -1) 📝 `docs/extras.md` (+14 -6) 📝 `tools/splitscreen_e2e.py` (+52 -0) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally. ## What and why Players can drag Setup tiles between windows or monitors, choose how two or three players share a window, show/hide names, and identify which window each view belongs to. Arrangement/layout edits stay in the draft until Apply; Names is saved immediately. Part 3 of the splitscreen Setup series, on top of #6395 (merged). Replaces closed #4180. Refs #2054 and #3541. ## Kind - [x] feature: something new for players (listed under New in the release notes) Suggested label: `feature`. ## Size 11 files, +808 −29. About 320 of those lines are `split_ui.rs` tests; the code is ~490 lines. It is one feature (the Setup page's mouse controls), so it isn't split further. The next parts, controller pickup (#6398) and servers (#6399), stay drafts until this merges. ## Vanilla reference Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths. ## Other projects' code None. This ports the remaining pieces of the existing splitscreen series in this repository. ## Localization Identify, Names, the layout squares, drag destinations ("Window 1 (2 of 3)") and tooltips, in English and French. The layout glyphs and the Auto tooltip come from the draft's layout index instead of parsing the English label, so translated labels keep their icons. ## Validation - `cargo test -p horizon-client-render --lib split` (61 tests), Clippy `-D warnings`, rustfmt. - Live (`tools/splitscreen_e2e.py`, real windows, macOS Metal): `controls` passes at this head. Correction (after merge): an earlier version of this line called a `setup` failure a main regression. It wasn't: the Mac's screen had locked during the run, and macOS stops redrawing locked windows. `setup` passed on #6395's head. The `controls` scenario added here drags a player between windows and onto P1, switches top-and-bottom and Auto layouts, and turns Names off. The full suite passed earlier on the series head that contains this part. - The author retested mouse focus with a physical controller. - Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses). ## Self-check Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6395 merged: main `c9343d6d7` merged in, so this diff is this part alone. **pr_ready** (`tools/pr_ready.py --quick --base refs/hz/main` on Mac, against refs/hz/main at c9343d6d7, 4 min 33 s) | Check | Result | | --- | --- | | Scope | ⚠️ 11 files, +808 −29; 817 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 609 passed (43 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 23 s) | | tests: horizon-client, horizon-client-lib, horizon-client-render | ❌ 3062 passed, 1 failed (2 min 6 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (13 s) | | 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) | The one failing test, `gfx::entity_skin::tests::the_shader_writes_what_the_cpu_reference_computes`, came in with main's `3e642d0ac` today (a compute pass that poses entity models). It compares the GPU's vertices to a CPU reference bit for bit and differs in the last bit of a float on this Mac's Metal; this PR doesn't touch `gfx`. 🤖 Generated with [Codex](https://openai.com/codex/) 🤖 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 06:27:56 +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#6846
No description provided.