Better signal when no beatmaps are loaded

This commit is contained in:
Dean Herbert 2022-04-28 19:08:16 +09:00
parent 804848c9fb
commit b6896376e7
1 changed files with 10 additions and 3 deletions

View File

@ -159,10 +159,17 @@ private void beatmapsChanged(IRealmCollection<BeatmapSetInfo> sender, ChangeSet?
{
currentlyLoadedBeatmaps.Text = $"You currently have {sender.Count} beatmap(s) loaded!";
if (changes != null && (changes.DeletedIndices.Any() || changes.InsertedIndices.Any()))
if (sender.Count == 0)
{
currentlyLoadedBeatmaps.FadeColour(colours.YellowLight).FadeColour(OverlayColourProvider.Content2);
currentlyLoadedBeatmaps.ScaleTo(1.1f).ScaleTo(1, 1000, Easing.OutQuint);
currentlyLoadedBeatmaps.FadeColour(colours.Red1, 500, Easing.OutQuint);
}
else if (changes != null && (changes.DeletedIndices.Any() || changes.InsertedIndices.Any()))
{
currentlyLoadedBeatmaps.FadeColour(colours.Yellow)
.FadeColour(OverlayColourProvider.Content2, 1500, Easing.OutQuint);
currentlyLoadedBeatmaps.ScaleTo(1.1f)
.ScaleTo(1, 1500, Easing.OutQuint);
}
}