mirror of https://github.com/ppy/osu
Add circle gameplay test coverage
This commit is contained in:
parent
c657ef2722
commit
d46739ff0b
|
@ -24,6 +24,12 @@ public override void SetUpSteps()
|
|||
AddUntilStep("wait for load", () => latencyCertifier.IsLoaded);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCircleGameplay()
|
||||
{
|
||||
AddStep("set visual mode to circles", () => latencyCertifier.VisualMode.Value = LatencyVisualMode.CircleGameplay);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCertification()
|
||||
{
|
||||
|
|
|
@ -63,7 +63,7 @@ public class LatencyCertifierScreen : OsuScreen
|
|||
[Resolved]
|
||||
private FrameworkConfigManager config { get; set; } = null!;
|
||||
|
||||
private readonly Bindable<LatencyVisualMode> visualMode = new Bindable<LatencyVisualMode>();
|
||||
public readonly Bindable<LatencyVisualMode> VisualMode = new Bindable<LatencyVisualMode>();
|
||||
|
||||
private const int rounds_to_complete = 5;
|
||||
|
||||
|
@ -187,7 +187,7 @@ protected override bool OnKeyDown(KeyDownEvent e)
|
|||
switch (e.Key)
|
||||
{
|
||||
case Key.Space:
|
||||
visualMode.Value = (LatencyVisualMode)(((int)visualMode.Value + 1) % 3);
|
||||
VisualMode.Value = (LatencyVisualMode)(((int)VisualMode.Value + 1) % 3);
|
||||
return true;
|
||||
|
||||
case Key.Tab:
|
||||
|
@ -396,14 +396,14 @@ private void loadNextRound()
|
|||
new LatencyArea(Key.Number1, betterSide == 1 ? mapDifficultyToTargetFrameRate(DifficultyLevel) : (int?)null)
|
||||
{
|
||||
Width = 0.5f,
|
||||
VisualMode = { BindTarget = visualMode },
|
||||
VisualMode = { BindTarget = VisualMode },
|
||||
IsActiveArea = { Value = true },
|
||||
ReportUserBest = () => recordResult(betterSide == 0),
|
||||
},
|
||||
new LatencyArea(Key.Number2, betterSide == 0 ? mapDifficultyToTargetFrameRate(DifficultyLevel) : (int?)null)
|
||||
{
|
||||
Width = 0.5f,
|
||||
VisualMode = { BindTarget = visualMode },
|
||||
VisualMode = { BindTarget = VisualMode },
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
ReportUserBest = () => recordResult(betterSide == 1)
|
||||
|
|
Loading…
Reference in New Issue