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:
parent
7845c5cfb7
commit
79df094f17
@ -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,
|
||||||
|
10
osu.Game/Overlays/Notifications/FriendOfflineNotification.cs
Normal file
10
osu.Game/Overlays/Notifications/FriendOfflineNotification.cs
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
10
osu.Game/Overlays/Notifications/FriendOnlineNotification.cs
Normal file
10
osu.Game/Overlays/Notifications/FriendOnlineNotification.cs
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user