2019-08-01 03:55:56 +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.Collections.Generic;
|
2019-08-20 16:47:24 +08:00
|
|
|
|
using System.Linq;
|
2019-08-01 03:55:56 +08:00
|
|
|
|
using osu.Framework.Extensions;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Rulesets.Judgements;
|
2019-09-02 15:28:14 +08:00
|
|
|
|
using osu.Game.Rulesets.Objects;
|
2019-08-01 03:55:56 +08:00
|
|
|
|
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
|
|
|
{
|
|
|
|
|
public class TestSceneDrawableJudgement : SkinnableTestScene
|
|
|
|
|
{
|
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
|
{
|
|
|
|
|
typeof(DrawableJudgement),
|
|
|
|
|
typeof(DrawableOsuJudgement)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public TestSceneDrawableJudgement()
|
|
|
|
|
{
|
2019-08-20 16:47:24 +08:00
|
|
|
|
foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
|
|
|
|
|
AddStep("Show " + result.GetDescription(), () => SetContents(() =>
|
2019-09-02 15:28:14 +08:00
|
|
|
|
new DrawableOsuJudgement(new JudgementResult(null, new HitWindows()) { Type = result }, null)
|
2019-08-20 16:47:24 +08:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
|
}));
|
2019-08-01 03:55:56 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|