2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2018-11-20 07:51:59 +00:00
|
|
|
using osuTK;
|
2018-04-13 09:19:50 +00:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Game.Screens.Edit.Components.Timelines.Summary.Parts;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Components.Timelines.Summary
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The timeline that sits at the bottom of the editor.
|
|
|
|
/// </summary>
|
|
|
|
public class SummaryTimeline : BottomBarContainer
|
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
2020-05-22 07:37:28 +00:00
|
|
|
private void load(OsuColour colours)
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
2020-05-22 07:37:28 +00:00
|
|
|
new MarkerPart { RelativeSizeAxes = Axes.Both },
|
2018-05-23 08:37:39 +00:00
|
|
|
new ControlPointPart
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.BottomCentre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2021-04-15 09:42:30 +00:00
|
|
|
Y = -10,
|
2018-04-13 09:19:50 +00:00
|
|
|
Height = 0.35f
|
|
|
|
},
|
2018-05-23 08:37:39 +00:00
|
|
|
new BookmarkPart
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Height = 0.35f
|
|
|
|
},
|
|
|
|
new Container
|
|
|
|
{
|
2021-04-15 07:33:29 +00:00
|
|
|
Name = "centre line",
|
2018-04-13 09:19:50 +00:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Colour = colours.Gray5,
|
|
|
|
Children = new Drawable[]
|
|
|
|
{
|
|
|
|
new Circle
|
|
|
|
{
|
|
|
|
Anchor = Anchor.CentreLeft,
|
2021-04-15 07:30:56 +00:00
|
|
|
Origin = Anchor.Centre,
|
2018-04-13 09:19:50 +00:00
|
|
|
Size = new Vector2(5)
|
|
|
|
},
|
|
|
|
new Box
|
|
|
|
{
|
|
|
|
Anchor = Anchor.CentreLeft,
|
|
|
|
Origin = Anchor.CentreLeft,
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 1,
|
|
|
|
EdgeSmoothness = new Vector2(0, 1),
|
|
|
|
},
|
|
|
|
new Circle
|
|
|
|
{
|
|
|
|
Anchor = Anchor.CentreRight,
|
2021-04-15 07:30:56 +00:00
|
|
|
Origin = Anchor.Centre,
|
2018-04-13 09:19:50 +00:00
|
|
|
Size = new Vector2(5)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
2018-05-23 08:37:39 +00:00
|
|
|
new BreakPart
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2021-04-15 07:30:20 +00:00
|
|
|
Height = 0.10f
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|