A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using System;
5
6namespace osu.Framework.Testing.Drawables.Steps
7{
8 public class SingleStepButton : StepButton
9 {
10 public new Action Action;
11
12 public SingleStepButton(bool isSetupStep = false)
13 : base(isSetupStep)
14 {
15 base.Action = () =>
16 {
17 Action?.Invoke();
18 Success();
19 };
20 }
21 }
22}