2019-12-26 13:15:49 +00: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-06-12 15:06:19 +00:00
|
|
|
using osu.Game.Rulesets.Mania.Scoring;
|
2020-03-30 14:03:36 +00:00
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
2019-12-26 13:15:49 +00:00
|
|
|
using osu.Game.Rulesets.Objects;
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
|
|
|
|
2020-03-30 14:03:36 +00:00
|
|
|
namespace osu.Game.Rulesets.Mania.Tests.Skinning
|
2019-12-26 13:15:49 +00:00
|
|
|
{
|
2020-04-07 07:18:34 +00:00
|
|
|
public class TestSceneDrawableJudgement : ManiaSkinnableTestScene
|
2019-12-26 13:15:49 +00:00
|
|
|
{
|
|
|
|
public TestSceneDrawableJudgement()
|
|
|
|
{
|
2020-06-13 03:31:34 +00:00
|
|
|
var hitWindows = new ManiaHitWindows();
|
2020-06-12 15:06:19 +00:00
|
|
|
|
2019-12-26 13:15:49 +00:00
|
|
|
foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
|
|
|
|
{
|
2020-06-13 03:31:34 +00:00
|
|
|
if (hitWindows.IsHitResultAllowed(result))
|
|
|
|
{
|
2020-06-12 15:06:19 +00:00
|
|
|
AddStep("Show " + result.GetDescription(), () => SetContents(() =>
|
2020-11-18 10:47:35 +00:00
|
|
|
new DrawableManiaJudgement(new JudgementResult(new HitObject { StartTime = Time.Current }, new Judgement())
|
2020-11-18 10:34:00 +00:00
|
|
|
{
|
2020-11-18 10:47:35 +00:00
|
|
|
Type = result
|
|
|
|
}, null)
|
2020-06-12 15:06:19 +00:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
}));
|
2020-06-13 03:31:34 +00:00
|
|
|
}
|
2019-12-26 13:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|