1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-17 00:33:21 +08:00
osu-lazer/osu.Game.Tournament/Screens/Ladder/Components/LadderResetTeamsDialog.cs

24 lines
764 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 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:44:41 +08:00
public partial class LadderResetTeamsDialog : DangerousActionDialog
{
2023-07-17 05:44:41 +08:00
public LadderResetTeamsDialog(Container<DrawableTournamentMatch> matchesContainer)
{
HeaderText = @"Confirm reset teams?";
Icon = FontAwesome.Solid.Undo;
DangerousAction = () =>
{
foreach (var p in matchesContainer)
p.Match.Reset();
};
}
}
}