1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 13:05:27 +08:00

Add unique samples for friend online/offline notifications

This commit is contained in:
Jamie Taylor 2025-01-24 23:20:04 +09:00
parent 7845c5cfb7
commit 79df094f17
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
3 changed files with 22 additions and 2 deletions

View File

@ -167,7 +167,7 @@ namespace osu.Game.Online
APIUser? singleUser = onlineAlertQueue.Count == 1 ? onlineAlertQueue.Single() : null; APIUser? singleUser = onlineAlertQueue.Count == 1 ? onlineAlertQueue.Single() : null;
notifications.Post(new SimpleNotification notifications.Post(new FriendOnlineNotification
{ {
Transient = true, Transient = true,
IsImportant = false, IsImportant = false,
@ -204,7 +204,7 @@ namespace osu.Game.Online
return; return;
} }
notifications.Post(new SimpleNotification notifications.Post(new FriendOfflineNotification
{ {
Transient = true, Transient = true,
IsImportant = false, IsImportant = false,

View File

@ -0,0 +1,10 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Overlays.Notifications
{
public partial class FriendOfflineNotification : SimpleNotification
{
public override string PopInSampleName => "UI/notification-friend-offline";
}
}

View File

@ -0,0 +1,10 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
namespace osu.Game.Overlays.Notifications
{
public partial class FriendOnlineNotification : SimpleNotification
{
public override string PopInSampleName => "UI/notification-friend-online";
}
}