Own main menu (game's Continue/New Game/Credits/Changelog/Quit hidden, QUIT in the launcher); new server profile layout; admin items: ratchet set, battery, shop items; session shows server player limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 10:41:54 +02:00
co-authored by Claude Opus 5.5
parent 9f55646123
commit bba20cf991
5 changed files with 166 additions and 44 deletions
+21
View File
@@ -51,6 +51,27 @@ namespace MSCO
}
/// <summary>Startet das Spiel wie ein Klick auf CONTINUE.</summary>
// Knöpfe des Spiel-Hauptmenüs, die MSCO ersetzt (der MSCO-Launcher ist das Hauptmenü)
static readonly string[] HiddenMenuButtons = { "ButtonContinue", "ButtonNewgame", "ButtonCredits", "ButtonQuit", "ButtonChangelog" };
/// <summary>
/// Continue, New Game, Credits, Changelog und Quit des Spiels unsichtbar und unklickbar machen. Nicht abschalten:
/// die Logik hinter CONTINUE lädt beim Beitreten den übertragenen Spielstand (StartGame). Gibt die Anzahl zurück.
/// </summary>
public static int HideGameMenuButtons()
{
int hidden = 0;
foreach (string name in HiddenMenuButtons)
{
GameObject button = GameObject.Find(name);
if (button == null) continue;
foreach (Renderer r in button.GetComponentsInChildren<Renderer>(true)) r.enabled = false;
foreach (Collider c in button.GetComponentsInChildren<Collider>(true)) c.enabled = false;
hidden++;
}
return hidden;
}
public static void StartGame()
{
PlayMakerFSM fsm;