mirror of
https://github.com/ppy/osu
synced 2025-01-11 16:49:39 +00:00
Add count to deletion dialog
This commit is contained in:
parent
bee450ae1e
commit
d2650fc1a0
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using Humanizer;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Overlays.Dialog;
|
using osu.Game.Overlays.Dialog;
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ namespace osu.Game.Collections
|
|||||||
public DeleteCollectionDialog(BeatmapCollection collection, Action deleteAction)
|
public DeleteCollectionDialog(BeatmapCollection collection, Action deleteAction)
|
||||||
{
|
{
|
||||||
HeaderText = "Confirm deletion of";
|
HeaderText = "Confirm deletion of";
|
||||||
BodyText = collection.Name.Value;
|
BodyText = $"{collection.Name.Value} ({"beatmap".ToQuantity(collection.Beatmaps.Count)})";
|
||||||
|
|
||||||
Icon = FontAwesome.Regular.TrashAlt;
|
Icon = FontAwesome.Regular.TrashAlt;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user