mirror of
https://github.com/ppy/osu.git
synced 2024-11-16 19:57:36 +08:00
24 lines
764 B
C#
24 lines
764 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 osu.Framework.Graphics.Containers;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Game.Overlays.Dialog;
|
|
|
|
namespace osu.Game.Tournament.Screens.Ladder.Components
|
|
{
|
|
public partial class LadderResetTeamsDialog : DangerousActionDialog
|
|
{
|
|
public LadderResetTeamsDialog(Container<DrawableTournamentMatch> matchesContainer)
|
|
{
|
|
HeaderText = @"Confirm reset teams?";
|
|
Icon = FontAwesome.Solid.Undo;
|
|
DangerousAction = () =>
|
|
{
|
|
foreach (var p in matchesContainer)
|
|
p.Match.Reset();
|
|
};
|
|
}
|
|
}
|
|
}
|