2023-07-21 06:28:31 +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;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Overlays.Dialog;
|
2023-07-22 03:17:14 +08:00
|
|
|
using osu.Game.Tournament.Models;
|
2023-07-21 06:28:31 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Tournament.Screens.Editors.Components
|
|
|
|
{
|
2023-07-22 03:17:14 +08:00
|
|
|
public partial class DeleteRoundDialog : DangerousActionDialog
|
2023-07-21 06:28:31 +08:00
|
|
|
{
|
2023-07-22 03:17:14 +08:00
|
|
|
public DeleteRoundDialog(TournamentRound round, Action action)
|
2023-07-21 06:28:31 +08:00
|
|
|
{
|
2023-07-22 03:17:14 +08:00
|
|
|
HeaderText = round.Name.Value.Length > 0 ? $@"Delete round ""{round.Name.Value}""?" : @"Delete unnamed round?";
|
2023-07-21 06:28:31 +08:00
|
|
|
Icon = FontAwesome.Solid.Trash;
|
|
|
|
DangerousAction = action;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|