2020-04-30 16:38:37 +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.
|
|
|
|
|
2020-05-01 18:49:30 +08:00
|
|
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
|
|
|
using osu.Framework.Testing;
|
2020-05-03 22:55:44 +08:00
|
|
|
using osu.Game.Rulesets.Judgements;
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2020-05-01 18:49:30 +08:00
|
|
|
using osu.Game.Rulesets.Taiko.Skinning;
|
2020-04-30 16:38:37 +08:00
|
|
|
using osu.Game.Skinning;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Tests.Skinning
|
|
|
|
{
|
|
|
|
public class TestSceneTaikoScroller : TaikoSkinnableTestScene
|
|
|
|
{
|
|
|
|
public TestSceneTaikoScroller()
|
|
|
|
{
|
2020-05-14 09:02:47 +08:00
|
|
|
AddStep("Load scroller", () => SetContents(() => new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.Scroller), _ => Empty())));
|
2020-05-03 22:55:44 +08:00
|
|
|
AddToggleStep("Toggle passing", passing => this.ChildrenOfType<LegacyTaikoScroller>().ForEach(s => s.LastResult.Value =
|
|
|
|
new JudgementResult(null, new Judgement()) { Type = passing ? HitResult.Perfect : HitResult.Miss }));
|
2020-04-30 16:38:37 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|