Create subclass for "Error" notifications to allow them to have a unique pop-in sound

This commit is contained in:
Jamie Taylor
2021-01-21 18:42:53 +09:00
parent a1ae739a62
commit 2ee634d173
3 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,17 @@
// 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.
using osu.Framework.Graphics.Sprites;
namespace osu.Game.Overlays.Notifications
{
public class SimpleErrorNotification : SimpleNotification
{
protected override string PopInSampleName => "UI/error-notification-pop-in";
public SimpleErrorNotification()
{
Icon = FontAwesome.Solid.Bomb;
}
}
}