Basic implementation of hold notes (not finalized yet).

This commit is contained in:
smoogipooo
2017-05-04 18:02:43 +09:00
parent f945c636c2
commit 4ad3e3d64e
7 changed files with 214 additions and 37 deletions

View File

@ -12,6 +12,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenTK.Graphics;
using OpenTK;
namespace osu.Desktop.VisualTests.Tests
{
@ -21,19 +22,48 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
Add(new Container
Add(new FillFlowContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Y,
Width = 50,
Children = new[]
Direction = FillDirection.Horizontal,
Spacing = new Vector2(10, 0),
// Imagine that the containers containing the drawable notes are the "columns"
Children = new Drawable[]
{
new DrawableNote(new Note())
new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.Red
RelativeSizeAxes = Axes.Y,
Width = 50,
Children = new[]
{
new DrawableNote(new Note())
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.Red
}
}
},
new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Y,
Width = 50,
Children = new[]
{
new DrawableHoldNote(new HoldNote())
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AccentColour = Color4.Red,
Length = 0.4f
}
}
}
}
});