mirror of https://github.com/ppy/osu
fix tests incorrectly showing judgements not present in mania
This commit is contained in:
parent
586e3d405c
commit
7def6a9181
|
@ -6,6 +6,7 @@
|
|||
using osu.Framework.Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Rulesets.Mania.Scoring;
|
||||
using osu.Game.Rulesets.Mania.UI;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
|
@ -16,8 +17,11 @@ public class TestSceneDrawableJudgement : ManiaSkinnableTestScene
|
|||
{
|
||||
public TestSceneDrawableJudgement()
|
||||
{
|
||||
var HitWindows = new ManiaHitWindows();
|
||||
|
||||
foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
|
||||
{
|
||||
if (HitWindows.IsHitResultAllowed(result))
|
||||
AddStep("Show " + result.GetDescription(), () => SetContents(() =>
|
||||
new DrawableManiaJudgement(new JudgementResult(new HitObject(), new Judgement()) { Type = result }, null)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue