mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 18:33:04 +08:00
25 lines
647 B
C#
25 lines
647 B
C#
using OpenTK;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
namespace osu.Game.Screens.Edit.Components.Timelines.Summary.Visualisations
|
|
{
|
|
/// <summary>
|
|
/// Represents a singular point on a <see cref="Timeline"/>.
|
|
/// </summary>
|
|
internal class PointVisualisation : Box
|
|
{
|
|
protected PointVisualisation(double startTime)
|
|
{
|
|
Origin = Anchor.TopCentre;
|
|
|
|
RelativeSizeAxes = Axes.Y;
|
|
Width = 1;
|
|
EdgeSmoothness = new Vector2(1, 0);
|
|
|
|
RelativePositionAxes = Axes.X;
|
|
X = (float)startTime;
|
|
}
|
|
}
|
|
}
|