Split SquareGraph out and make SongProgressGraph also able to take a list of Objects.

This commit is contained in:
Dean Herbert
2017-04-18 18:40:02 +09:00
parent 417a5ca713
commit 3b21340e1b
5 changed files with 267 additions and 232 deletions

View File

@ -16,6 +16,7 @@ namespace osu.Desktop.VisualTests.Tests
public override string Description => @"With fake data";
private SongProgress progress;
private SongProgressGraph graph;
public override void Reset()
{
@ -29,6 +30,14 @@ namespace osu.Desktop.VisualTests.Tests
Origin = Anchor.BottomLeft,
});
Add(graph = new SongProgressGraph
{
RelativeSizeAxes = Axes.X,
Height = 200,
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
});
AddStep("Toggle Bar", progress.ToggleBar);
AddWaitStep(5);
AddStep("Toggle Bar", progress.ToggleBar);
@ -45,6 +54,7 @@ namespace osu.Desktop.VisualTests.Tests
objects.Add(new HitObject { StartTime = i });
progress.Objects = objects;
graph.Objects = objects;
}
}
}