1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-10 09:57:18 +08:00

Merge pull request #32180 from GioSDA/multiplayer-taskbar-flash

Add taskbar flashing when a multiplayer game is starting
This commit is contained in:
Dan Balasescu 2025-03-06 13:55:50 +09:00 committed by GitHub
commit 1c13c2daf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,9 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
[Resolved]
private MultiplayerClient multiplayerClient { get; set; } = null!;
[Resolved]
private OsuGame? game { get; set; }
private Player? player;
public MultiplayerPlayerLoader(Func<Player> createPlayer)
@ -39,6 +42,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
base.OnPlayerLoaded();
game?.Window?.Flash();
multiplayerClient.ChangeState(MultiplayerUserState.Loaded)
.ContinueWith(task => failAndBail(task.Exception?.Message ?? "Server error"), TaskContinuationOptions.NotOnRanToCompletion);
}