2023-07-17 05:35:20 +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 osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Overlays.Dialog;
|
|
|
|
|
2023-07-17 05:44:41 +08:00
|
|
|
namespace osu.Game.Tournament.Screens.Ladder.Components
|
2023-07-17 05:35:20 +08:00
|
|
|
{
|
2023-07-17 05:44:41 +08:00
|
|
|
public partial class LadderResetTeamsDialog : DangerousActionDialog
|
2023-07-17 05:35:20 +08:00
|
|
|
{
|
2023-07-17 05:44:41 +08:00
|
|
|
public LadderResetTeamsDialog(Container<DrawableTournamentMatch> matchesContainer)
|
2023-07-17 05:35:20 +08:00
|
|
|
{
|
|
|
|
HeaderText = @"Confirm reset teams?";
|
|
|
|
Icon = FontAwesome.Solid.Undo;
|
|
|
|
DangerousAction = () =>
|
|
|
|
{
|
|
|
|
foreach (var p in matchesContainer)
|
|
|
|
p.Match.Reset();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|