Launcher can be minimized to a small bar in the start menu

A '-' button collapses the fullscreen launcher into a small MSCO bar at the
top; the game's start menu is visible and clickable again and its music is
unmuted. Clicking the bar opens the launcher; prompts (disconnected,
reconnecting, join confirmation, version warning) open it automatically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 17:22:24 +02:00
co-authored by Claude Opus 5.5
parent 3b83644ce9
commit 52b1219934
4 changed files with 61 additions and 3 deletions
+8 -1
View File
@@ -65,6 +65,7 @@ namespace MSCO
readonly TrafficSync traffic = new TrafficSync();
readonly HingeSync hinges = new HingeSync();
readonly ControlSync controls = new ControlSync();
bool lobbyWasMinimized;
float nextControlResync;
readonly Toasts toasts = new Toasts();
float nextNeedsSend;
@@ -972,7 +973,13 @@ namespace MSCO
{
nextMenuButtonCheck = Time.realtimeSinceStartup + 0.5f;
menuButtonsHidden = MenuHelper.HideGameMenuButtons() > 0;
MenuHelper.MuteMenuAudio(); // Launcher im Vollbild: Menü-Musik/-Geräusche aus
if (!lobby.Minimized) MenuHelper.MuteMenuAudio(); // Launcher im Vollbild: Menü-Musik/-Geräusche aus
}
// Launcher eingeklappt: Menü-Musik wieder an; aufgeklappt: wieder aus
if (MenuHelper.InMenu && lobby.Minimized != lobbyWasMinimized)
{
lobbyWasMinimized = lobby.Minimized;
if (lobby.Minimized) MenuHelper.UnmuteMenuAudio(); else MenuHelper.MuteMenuAudio();
}
UpdateOverlayKeys();
PersistPendingState(); // Kick-Grund / Neu-Verbinden über das Neuladen der Mods hinweg merken