From 05dc113c703a2aaa2c3f58adff0611ae38fc9fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Thu, 10 Apr 2025 08:24:53 +0200 Subject: [PATCH] Use more distinctive window title for tournament client This is in response to feedback in https://discord.com/channels/188630481301012481/1097318920991559880/1359117234257268747. The long and short of it is that without a unique title it's a bit hard to tell in software like OBS which window is the game and which window is the tournament client if wanting to run both, which I can agree with. --- osu.Game.Tournament/TournamentGameBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/osu.Game.Tournament/TournamentGameBase.cs b/osu.Game.Tournament/TournamentGameBase.cs index eecd097a97..2be7c4aff3 100644 --- a/osu.Game.Tournament/TournamentGameBase.cs +++ b/osu.Game.Tournament/TournamentGameBase.cs @@ -53,6 +53,14 @@ namespace osu.Game.Tournament return new ProductionEndpointConfiguration(); } + public override void SetHost(GameHost host) + { + base.SetHost(host); + + if (host.Window != null) + host.Window.Title = $"{Name} [tournament client]"; + } + private TournamentSpriteText initialisationText = null!; [BackgroundDependencyLoader]