Merge branch 'master' into update-changelog-notification

This commit is contained in:
Dean Herbert
2017-08-23 00:12:59 +09:00
committed by GitHub
35 changed files with 337 additions and 246 deletions

View File

@ -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.

View File

@ -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);