From 9f6958e5ba81add9f5d5a927ab19a2d8677e644a Mon Sep 17 00:00:00 2001 From: Syntriax Date: Sun, 6 Jul 2025 22:24:09 +0300 Subject: [PATCH] chore: added title changing for clients for better debugging --- Platforms/Desktop/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Platforms/Desktop/Program.cs b/Platforms/Desktop/Program.cs index 7a821ae..ee1056e 100644 --- a/Platforms/Desktop/Program.cs +++ b/Platforms/Desktop/Program.cs @@ -51,4 +51,9 @@ monoGameWindow.Graphics.PreferredBackBufferWidth = clientConfiguration.windowWid monoGameWindow.Graphics.PreferredBackBufferHeight = clientConfiguration.windowHeight; monoGameWindow.Graphics.GraphicsProfile = GraphicsProfile.HiDef; +universe.FindBehaviour()? + .OnConnectionEstablished.AddOneTimeListener( + (sender, connection) => monoGameWindow.Window.Title = $"Client {connection.Id}" + ); + monoGameWindow.Run();