mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add ability to flick notifications to the right to store for later
This commit is contained in:
@ -42,6 +42,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
/// </summary>
|
||||
public Func<bool>? Activated;
|
||||
|
||||
public Action? ForwardToOverlay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Should we show at the top of our section on display?
|
||||
/// </summary>
|
||||
@ -310,6 +312,8 @@ namespace osu.Game.Overlays.Notifications
|
||||
{
|
||||
if (Rotation < -10 || velocity.X < -0.3f)
|
||||
notification.Close(true);
|
||||
else if (X > 30 || velocity.X > 0.3f)
|
||||
notification.ForwardToOverlay?.Invoke();
|
||||
else
|
||||
ResetPosition();
|
||||
|
||||
|
Reference in New Issue
Block a user