Re-namespace and split out timeline parts from the SummaryTimeline

This commit is contained in:
smoogipoo
2017-09-26 15:44:40 +09:00
parent d86e81f07c
commit a1f88a17b1
7 changed files with 221 additions and 0 deletions

View File

@ -0,0 +1,25 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations
{
/// <summary>
/// Represents a spanning point on a <see cref="Timeline"/>.
/// </summary>
internal class DurationVisualisation : Container
{
protected DurationVisualisation(double startTime, double endTime)
{
Masking = true;
CornerRadius = 5;
RelativePositionAxes = Axes.X;
RelativeSizeAxes = Axes.Both;
X = (float)startTime;
Width = (float)(endTime - startTime);
AddInternal(new Box { RelativeSizeAxes = Axes.Both });
}
}
}