// Copyright (c) ppy Pty Ltd . 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 matchesContainer) { HeaderText = @"Confirm reset teams?"; Icon = FontAwesome.Solid.Undo; DangerousAction = () => { foreach (var p in matchesContainer) p.Match.Reset(); }; } } }