Rewrite notes to have time-relative position and length.

This commit is contained in:
smoogipooo
2017-05-09 20:33:59 +09:00
parent ea76eff1e1
commit d852567d1d
6 changed files with 53 additions and 48 deletions

View File

@ -34,32 +34,40 @@ namespace osu.Desktop.VisualTests.Tests
{
new Container
{
Name = "Normal note column",
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Y,
Width = 50,
RelativeCoordinateSpace = new Vector2(1, 10000),
Children = new[]
{
new DrawableNote(new Note())
new DrawableNote(new Note
{
StartTime = 5000
})
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.Red
}
}
},
new Container
{
Name = "Hold note column",
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Y,
Width = 50,
RelativeCoordinateSpace = new Vector2(1, 10000),
Children = new[]
{
new DrawableHoldNote(new HoldNote())
new DrawableHoldNote(new HoldNote
{
StartTime = 5000,
Duration = 1000,
})
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.Red,
Length = 0.4f
}