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.
|
|
|
|
|
2020-09-08 13:38:25 +08:00
|
|
|
using System;
|
2020-09-08 16:12:58 +08:00
|
|
|
using Humanizer;
|
2022-07-27 18:35:25 +08:00
|
|
|
using osu.Game.Database;
|
2020-09-05 02:52:07 +08:00
|
|
|
using osu.Game.Overlays.Dialog;
|
|
|
|
|
|
|
|
namespace osu.Game.Collections
|
|
|
|
{
|
2024-10-07 15:44:10 +08:00
|
|
|
public partial class DeleteCollectionDialog : DeletionDialog
|
2020-09-05 02:52:07 +08:00
|
|
|
{
|
2022-07-27 18:35:25 +08:00
|
|
|
public DeleteCollectionDialog(Live<BeatmapCollection> collection, Action deleteAction)
|
2020-09-05 02:52:07 +08:00
|
|
|
{
|
2022-07-27 18:35:25 +08:00
|
|
|
BodyText = collection.PerformRead(c => $"{c.Name} ({"beatmap".ToQuantity(c.BeatmapMD5Hashes.Count)})");
|
2023-03-06 03:57:26 +08:00
|
|
|
DangerousAction = deleteAction;
|
2020-09-05 02:52:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|