1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Don't show judgement type "none"

This commit is contained in:
Dean Herbert 2019-08-20 17:47:24 +09:00
parent 2066a93918
commit 78c7170e86

View File

@ -3,6 +3,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using osu.Framework.Extensions; using osu.Framework.Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Game.Rulesets.Judgements; using osu.Game.Rulesets.Judgements;
@ -21,14 +22,9 @@ namespace osu.Game.Rulesets.Osu.Tests
public TestSceneDrawableJudgement() public TestSceneDrawableJudgement()
{ {
foreach (HitResult result in Enum.GetValues(typeof(HitResult))) foreach (HitResult result in Enum.GetValues(typeof(HitResult)).OfType<HitResult>().Skip(1))
{ AddStep("Show " + result.GetDescription(), () => SetContents(() =>
JudgementResult judgement = new JudgementResult(null) new DrawableOsuJudgement(new JudgementResult(null) { Type = result }, null)
{
Type = result,
};
AddStep("Show " + result.GetDescription(), () => SetContents(() => new DrawableOsuJudgement(judgement, null)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
@ -36,4 +32,3 @@ namespace osu.Game.Rulesets.Osu.Tests
} }
} }
} }
}