1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00
osu-lazer/osu.Game/Collections/DeleteCollectionDialog.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
633 B
C#
Raw Normal View History

2020-09-05 02:52:07 +08:00
// 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 System;
2020-09-08 16:12:58 +08:00
using Humanizer;
using osu.Game.Database;
2020-09-05 02:52:07 +08:00
using osu.Game.Overlays.Dialog;
namespace osu.Game.Collections
{
public partial class DeleteCollectionDialog : DangerousActionDialog
2020-09-05 02:52:07 +08:00
{
public DeleteCollectionDialog(Live<BeatmapCollection> collection, Action deleteAction)
2020-09-05 02:52:07 +08:00
{
BodyText = collection.PerformRead(c => $"{c.Name} ({"beatmap".ToQuantity(c.BeatmapMD5Hashes.Count)})");
DangerousAction = deleteAction;
2020-09-05 02:52:07 +08:00
}
}
}