mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Add hold notes to TestCaseColumn
This commit is contained in:
parent
7deaffdb62
commit
c933dd4069
@ -59,6 +59,7 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
base.LoadComplete();
|
||||
|
||||
AddStep("note", createNote);
|
||||
AddStep("hold note", createHoldNote);
|
||||
}
|
||||
|
||||
private void createNote()
|
||||
@ -72,6 +73,17 @@ namespace osu.Game.Rulesets.Mania.Tests
|
||||
}
|
||||
}
|
||||
|
||||
private void createHoldNote()
|
||||
{
|
||||
for (int i = 0; i < columns.Count; i++)
|
||||
{
|
||||
var obj = new HoldNote { Column = i, StartTime = Time.Current + 2000, Duration = 500 };
|
||||
obj.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
|
||||
|
||||
columns[i].Add(new DrawableHoldNote(obj, columns[i].Action));
|
||||
}
|
||||
}
|
||||
|
||||
private Column createColumn(ScrollingDirection direction, ManiaAction action)
|
||||
{
|
||||
var column = new Column(direction)
|
||||
|
Loading…
Reference in New Issue
Block a user