This commit is contained in:
smoogipooo
2017-04-03 10:04:13 +09:00
parent 2510a9fd32
commit 0745098783
3 changed files with 30 additions and 21 deletions

View File

@ -31,7 +31,8 @@ namespace osu.Desktop.VisualTests.Tests
AddStep("Strong Centre", () => addCentreHit(true));
AddStep("Rim", () => addRimHit(false));
AddStep("Strong Rim", () => addRimHit(true));
AddStep("Add bar line", addBarLine);
AddStep("Add bar line", () => addBarLine(false));
AddStep("Add major bar line", () => addBarLine(true));
Add(new Container
{
@ -74,17 +75,15 @@ namespace osu.Desktop.VisualTests.Tests
});
}
private void addBarLine()
private void addBarLine(bool major)
{
bool isMajor = RNG.Next(8) == 0;
BarLine bl = new BarLine
{
StartTime = Time.Current + 1000,
PreEmpt = 1000
};
playfield.AddBarLine(isMajor ? new DrawableMajorBarLine(bl) : new DrawableBarLine(bl));
playfield.AddBarLine(major ? new DrawableMajorBarLine(bl) : new DrawableBarLine(bl));
}
private void addSwell()