mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Cleanup.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user