1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-17 15:12:54 +08:00
osu-lazer/osu.Game.Rulesets.Mania.Tests/Skinning/TestSceneDrawableJudgement.cs

31 lines
1.0 KiB
C#
Raw Normal View History

2019-12-26 21:15:49 +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.
using System;
using System.Linq;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements;
2020-03-30 22:03:36 +08:00
using osu.Game.Rulesets.Mania.UI;
2019-12-26 21:15:49 +08:00
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Scoring;
2020-03-30 22:03:36 +08:00
namespace osu.Game.Rulesets.Mania.Tests.Skinning
2019-12-26 21:15:49 +08:00
{
public class TestSceneDrawableJudgement : ManiaSkinnableTestScene
2019-12-26 21:15:49 +08:00
{
public TestSceneDrawableJudgement()
{
foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
{
AddStep("Show " + result.GetDescription(), () => SetContents(() =>
new DrawableManiaJudgement(new JudgementResult(new HitObject(), new Judgement()) { Type = result }, null)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}));
}
}
}
}