mirror of
https://github.com/ppy/osu
synced 2025-03-21 10:28:06 +00:00
Provide correct HitResult
type for random judgements in TestSceneHitErrorMeter
This commit is contained in:
parent
dc1e5a456a
commit
b31ff679fb
@ -48,7 +48,11 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
AddStep("create display", () => recreateDisplay(new OsuHitWindows(), 5));
|
AddStep("create display", () => recreateDisplay(new OsuHitWindows(), 5));
|
||||||
|
|
||||||
AddRepeatStep("New random judgement", () => newJudgement(), 40);
|
AddRepeatStep("New random judgement", () =>
|
||||||
|
{
|
||||||
|
double offset = RNG.Next(-150, 150);
|
||||||
|
newJudgement(offset, drawableRuleset.HitWindows.ResultFor(offset));
|
||||||
|
}, 400);
|
||||||
|
|
||||||
AddRepeatStep("New max negative", () => newJudgement(-drawableRuleset.HitWindows.WindowFor(HitResult.Meh)), 20);
|
AddRepeatStep("New max negative", () => newJudgement(-drawableRuleset.HitWindows.WindowFor(HitResult.Meh)), 20);
|
||||||
AddRepeatStep("New max positive", () => newJudgement(drawableRuleset.HitWindows.WindowFor(HitResult.Meh)), 20);
|
AddRepeatStep("New max positive", () => newJudgement(drawableRuleset.HitWindows.WindowFor(HitResult.Meh)), 20);
|
||||||
|
Loading…
Reference in New Issue
Block a user