mirror of
https://github.com/ppy/osu
synced 2025-01-31 02:12:03 +00:00
Add tests as separate steps
This commit is contained in:
parent
b7aed0a014
commit
530675f364
@ -43,25 +43,25 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
buttons.SetOsuLogo(logo);
|
buttons.SetOsuLogo(logo);
|
||||||
|
|
||||||
foreach (var s in Enum.GetValues(typeof(ButtonSystemState)).OfType<ButtonSystemState>().Skip(1))
|
foreach (var s in Enum.GetValues(typeof(ButtonSystemState)).OfType<ButtonSystemState>().Skip(1))
|
||||||
AddStep($"State to {s}", () =>
|
AddStep($"State to {s}", () => buttons.State = s);
|
||||||
{
|
|
||||||
buttons.State = s;
|
|
||||||
|
|
||||||
if (buttons.State == ButtonSystemState.EnteringMode)
|
AddStep("Exiting menu", () =>
|
||||||
{
|
{
|
||||||
buttons.FadeOut(400, Easing.InSine);
|
buttons.State = ButtonSystemState.EnteringMode;
|
||||||
buttons.MoveTo(new Vector2(-800, 0), 400, Easing.InSine);
|
buttons.FadeOut(400, Easing.InSine);
|
||||||
logo.FadeOut(300, Easing.InSine)
|
buttons.MoveTo(new Vector2(-800, 0), 400, Easing.InSine);
|
||||||
.ScaleTo(0.2f, 300, Easing.InSine);
|
logo.FadeOut(300, Easing.InSine)
|
||||||
}
|
.ScaleTo(0.2f, 300, Easing.InSine);
|
||||||
else
|
});
|
||||||
{
|
|
||||||
buttons.FadeIn(400, Easing.OutQuint);
|
AddStep("Entering menu", () =>
|
||||||
buttons.MoveTo(new Vector2(0), 400, Easing.OutQuint);
|
{
|
||||||
logo.FadeColour(Color4.White, 100, Easing.OutQuint);
|
buttons.State = ButtonSystemState.Play;
|
||||||
logo.FadeIn(100, Easing.OutQuint);
|
buttons.FadeIn(400, Easing.OutQuint);
|
||||||
}
|
buttons.MoveTo(new Vector2(0), 400, Easing.OutQuint);
|
||||||
});
|
logo.FadeColour(Color4.White, 100, Easing.OutQuint);
|
||||||
|
logo.FadeIn(100, Easing.OutQuint);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user