mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Allow the notification overlay to close when all notifications are dismissed
This commit is contained in:
@ -19,9 +19,9 @@ namespace osu.Game.Overlays.Notifications
|
||||
public abstract class Notification : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// Use requested close.
|
||||
/// User requested close.
|
||||
/// </summary>
|
||||
public Action Closed;
|
||||
public event Action Closed;
|
||||
|
||||
/// <summary>
|
||||
/// Run on user activating the notification. Return true to close.
|
||||
|
@ -24,6 +24,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
|
||||
private FlowContainer<Notification> notifications;
|
||||
|
||||
public int DisplayedCount => notifications.Count;
|
||||
|
||||
public void Add(Notification notification)
|
||||
{
|
||||
notifications.Add(notification);
|
||||
|
Reference in New Issue
Block a user