Display readable message when reaching download limit

This commit is contained in:
Salman Ahmed
2022-08-01 14:22:54 +03:00
parent 2465e8ed68
commit 3ff0327d91
3 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,26 @@
// 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.Allocation;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Localisation;
using osu.Game.Overlays.Notifications;
namespace osu.Game.Database
{
public class TooManyDownloadsNotification : SimpleNotification
{
public TooManyDownloadsNotification(string humanisedModelName)
{
Text = CommonStrings.TooManyDownloaded(humanisedModelName);
Icon = FontAwesome.Solid.ExclamationCircle;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
IconBackground.Colour = colours.RedDark;
}
}
}