1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 19:41:06 +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
Unverified
parent 7845c5cfb7
commit 79df094f17
3 changed files with 22 additions and 2 deletions
+2 -2
View File
@@ -167,7 +167,7 @@ namespace osu.Game.Online
APIUser? singleUser = onlineAlertQueue.Count == 1 ? onlineAlertQueue.Single() : null;
notifications.Post(new SimpleNotification
notifications.Post(new FriendOnlineNotification
{
Transient = true,
IsImportant = false,
@@ -204,7 +204,7 @@ namespace osu.Game.Online
return;
}
notifications.Post(new SimpleNotification
notifications.Post(new FriendOfflineNotification
{
Transient = true,
IsImportant = false,
@@ -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";
}
}
@@ -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";
}
}