[PR #2970] [MERGED] Show the multiplayer safety notice on the first Multiplayer click #4724

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

📋 Pull Request Information

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

Base: main ← Head: fix/multiplayer-safety-notice


📝 Commits (5)

  • 694568a Show the multiplayer safety notice on the first Multiplayer click
  • 05f8ec6 Pass the safety notice in the direct connection test
  • c90893c Merge main into fix/multiplayer-safety-notice
  • d3559e2 Proceed past the safety notice in the F5 server list test
  • f7300bd Merge main into fix/multiplayer-safety-notice

📊 Changes

7 files changed (+163 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -0)
📝 crates/horizon-client/src/game/agent.rs (+3 -0)
📝 crates/horizon-client/src/game/options.rs (+7 -1)
📝 crates/horizon-client/src/game/remote.rs (+3 -0)
📝 crates/horizon-client/src/game/startup_menu.rs (+10 -6)
📝 crates/horizon-client/src/title.rs (+133 -0)
📝 crates/horizon-client/src/title/tests.rs (+5 -0)

📄 Description

What and why

  • Vanilla shows a "Caution: Third-Party Online Play" screen the first time Multiplayer is clicked. Horizon opened the server list directly.
  • Now the first click opens that screen: a bold title, the warning text in a bordered text box (left aligned, as WarningScreen draws it), a "Do not show this screen again" box, Proceed and Back.
  • Proceed goes to the server list. With the box ticked, the choice is saved to options.txt as skipMultiplayerWarning, and later clicks skip the screen. Back returns to the title. Escape acts as Back.
  • Same behaviour on the startup menu and in game.

Vanilla reference

  • TitleScreen.java:197-198: the Multiplayer button opens JoinMultiplayerScreen when skipMultiplayerWarning is set, else SafetyScreen.
  • multiplayer/SafetyScreen.java:14-37: header, message, checkbox, Proceed (saves the box, opens the list) and Back.
  • multiplayer/WarningScreen.java: layout of the warning screen (8 px between rows, 12 px padding around the text box, FittingMultiLineTextWidget with the widget/text_field border and 4 px inside).
  • Translation keys (en_us.json): multiplayerWarning.header, multiplayerWarning.message, multiplayerWarning.check, gui.proceed, gui.back.

Self-check

clippy and fmt pass for horizon-client. 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/2970 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/multiplayer-safety-notice` --- ### 📝 Commits (5) - [`694568a`](https://github.com/horizon-rust/horizon/commit/694568a89cf5e844147cce636946c615dafa1f18) Show the multiplayer safety notice on the first Multiplayer click - [`05f8ec6`](https://github.com/horizon-rust/horizon/commit/05f8ec650d320f259139d87858a51daa760db31e) Pass the safety notice in the direct connection test - [`c90893c`](https://github.com/horizon-rust/horizon/commit/c90893c29cb561b7b7e2fcd52796039c9012f5bf) Merge main into fix/multiplayer-safety-notice - [`d3559e2`](https://github.com/horizon-rust/horizon/commit/d3559e2a5fa656d4d6e6a6dbe11d8f0602e7dee1) Proceed past the safety notice in the F5 server list test - [`f7300bd`](https://github.com/horizon-rust/horizon/commit/f7300bd96b34320065e5db77f62df2eafadd5828) Merge main into fix/multiplayer-safety-notice ### 📊 Changes **7 files changed** (+163 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -0) 📝 `crates/horizon-client/src/game/agent.rs` (+3 -0) 📝 `crates/horizon-client/src/game/options.rs` (+7 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+3 -0) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+10 -6) 📝 `crates/horizon-client/src/title.rs` (+133 -0) 📝 `crates/horizon-client/src/title/tests.rs` (+5 -0) </details> ### 📄 Description ## What and why - Vanilla shows a "Caution: Third-Party Online Play" screen the first time Multiplayer is clicked. Horizon opened the server list directly. - Now the first click opens that screen: a bold title, the warning text in a bordered text box (left aligned, as WarningScreen draws it), a "Do not show this screen again" box, Proceed and Back. - Proceed goes to the server list. With the box ticked, the choice is saved to options.txt as skipMultiplayerWarning, and later clicks skip the screen. Back returns to the title. Escape acts as Back. - Same behaviour on the startup menu and in game. ## Vanilla reference - TitleScreen.java:197-198: the Multiplayer button opens JoinMultiplayerScreen when skipMultiplayerWarning is set, else SafetyScreen. - multiplayer/SafetyScreen.java:14-37: header, message, checkbox, Proceed (saves the box, opens the list) and Back. - multiplayer/WarningScreen.java: layout of the warning screen (8 px between rows, 12 px padding around the text box, `FittingMultiLineTextWidget` with the `widget/text_field` border and 4 px inside). - Translation keys (en_us.json): multiplayerWarning.header, multiplayerWarning.message, multiplayerWarning.check, gui.proceed, gui.back. ## Self-check clippy and fmt pass for horizon-client. 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:28 +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#4724
No description provided.