mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 15:37:20 +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:
commit
1c13c2daf0
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user