Make it possible to retrieve notifications from NotificationOverlay

This commit is contained in:
Craftplacer
2019-12-17 06:55:48 +01:00
parent 1a1253a4aa
commit bea34e3aab
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,8 @@ namespace osu.Game.Overlays.Notifications
private FlowContainer<Notification> notifications;
public IEnumerable<Notification> Notifications => notifications.Children;
public int DisplayedCount => notifications.Count(n => !n.WasClosed);
public int UnreadCount => notifications.Count(n => !n.WasClosed && !n.Read);