mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 02:11:05 +08:00
22 lines
780 B
C#
22 lines
780 B
C#
|
// 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;
|
||
|
|
||
|
namespace osu.Game.Tournament.Screens.Editors.Components
|
||
|
{
|
||
|
public partial class TeamEditorDeleteTeamDialog : DangerousActionDialog
|
||
|
{
|
||
|
public TeamEditorDeleteTeamDialog(string fullTeamName, string acronym, Action action)
|
||
|
{
|
||
|
HeaderText = fullTeamName.Length > 0 ? $@"Delete team ""{fullTeamName}""?" :
|
||
|
acronym.Length > 0 ? $@"Delete team ""{acronym}""?" :
|
||
|
@"Delete unnamed team?";
|
||
|
Icon = FontAwesome.Solid.Trash;
|
||
|
DangerousAction = action;
|
||
|
}
|
||
|
}
|
||
|
}
|