1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 15:12:55 +08:00
osu-lazer/osu.Game.Tournament/Screens/Editors/Components/DeleteTeamDialog.cs

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

23 lines
814 B
C#
Raw Normal View History

// 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;
namespace osu.Game.Tournament.Screens.Editors.Components
{
2023-07-22 03:17:14 +08:00
public partial class DeleteTeamDialog : DangerousActionDialog
{
2023-07-22 03:17:14 +08:00
public DeleteTeamDialog(TournamentTeam team, Action action)
{
2023-07-22 03:17:14 +08:00
HeaderText = team.FullName.Value.Length > 0 ? $@"Delete team ""{team.FullName.Value}""?" :
team.Acronym.Value.Length > 0 ? $@"Delete team ""{team.Acronym.Value}""?" :
@"Delete unnamed team?";
Icon = FontAwesome.Solid.Trash;
DangerousAction = action;
}
}
}