osu/osu.Game.Rulesets.Osu.Tests/TestSceneDrawableJudgement.cs

31 lines
1.0 KiB
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 System;
2019-08-20 08:47:24 +00:00
using System.Linq;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Osu.Objects.Drawables;
using osu.Game.Rulesets.Scoring;
namespace osu.Game.Rulesets.Osu.Tests
{
public class TestSceneDrawableJudgement : OsuSkinnableTestScene
{
public TestSceneDrawableJudgement()
{
2019-08-20 08:47:24 +00:00
foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
2019-11-11 11:53:22 +00:00
{
2019-08-20 08:47:24 +00:00
AddStep("Show " + result.GetDescription(), () => SetContents(() =>
new DrawableOsuJudgement(new JudgementResult(new HitObject(), new Judgement()) { Type = result }, null)
2019-08-20 08:47:24 +00:00
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}));
2019-11-11 11:53:22 +00:00
}
}
}
}