2019-01-24 16:43:03 +08: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 17:19:50 +08:00
|
|
|
|
2017-09-26 14:45:27 +08:00
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2022-05-25 22:17:52 +08:00
|
|
|
using osu.Game.Overlays;
|
2017-09-26 14:45:27 +08:00
|
|
|
using osu.Game.Screens.Edit.Components.Timelines.Summary.Parts;
|
2022-05-25 22:17:52 +08:00
|
|
|
using osuTK;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2017-09-26 14:45:27 +08:00
|
|
|
namespace osu.Game.Screens.Edit.Components.Timelines.Summary
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// The timeline that sits at the bottom of the editor.
|
|
|
|
/// </summary>
|
2017-11-17 17:26:13 +08:00
|
|
|
public partial class SummaryTimeline : BottomBarContainer
|
2017-09-26 14:45:27 +08:00
|
|
|
{
|
2018-03-19 15:27:52 +08:00
|
|
|
[BackgroundDependencyLoader]
|
2022-05-25 22:17:52 +08:00
|
|
|
private void load(OverlayColourProvider colourProvider)
|
2017-09-26 14:45:27 +08:00
|
|
|
{
|
2022-05-25 22:17:52 +08:00
|
|
|
Background.Colour = colourProvider.Background6;
|
|
|
|
|
2018-03-19 15:27:52 +08:00
|
|
|
Children = new Drawable[]
|
2017-09-26 14:45:27 +08:00
|
|
|
{
|
2018-03-19 15:27:52 +08:00
|
|
|
new Container
|
2017-11-17 17:26:13 +08:00
|
|
|
{
|
2021-04-15 15:33:29 +08:00
|
|
|
Name = "centre line",
|
2017-11-17 17:26:13 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
2022-05-25 22:17:52 +08:00
|
|
|
Colour = colourProvider.Background2,
|
2017-11-17 17:26:13 +08:00
|
|
|
Children = new Drawable[]
|
2017-09-26 14:45:27 +08:00
|
|
|
{
|
2017-11-17 17:26:13 +08:00
|
|
|
new Circle
|
2017-09-26 14:45:27 +08:00
|
|
|
{
|
2017-11-17 17:26:13 +08:00
|
|
|
Anchor = Anchor.CentreLeft,
|
2021-04-15 15:30:56 +08:00
|
|
|
Origin = Anchor.Centre,
|
2017-11-17 17:26:13 +08:00
|
|
|
Size = new Vector2(5)
|
2017-09-26 16:56:16 +08:00
|
|
|
},
|
2017-11-17 17:26:13 +08:00
|
|
|
new Box
|
2017-09-26 16:56:16 +08:00
|
|
|
{
|
2017-11-17 17:26:13 +08:00
|
|
|
Anchor = Anchor.CentreLeft,
|
|
|
|
Origin = Anchor.CentreLeft,
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
Height = 1,
|
|
|
|
EdgeSmoothness = new Vector2(0, 1),
|
2017-09-26 16:56:16 +08:00
|
|
|
},
|
2017-11-17 17:26:13 +08:00
|
|
|
new Circle
|
2017-09-26 16:56:16 +08:00
|
|
|
{
|
2017-11-17 17:26:13 +08:00
|
|
|
Anchor = Anchor.CentreRight,
|
2021-04-15 15:30:56 +08:00
|
|
|
Origin = Anchor.Centre,
|
2017-11-17 17:26:13 +08:00
|
|
|
Size = new Vector2(5)
|
2017-09-26 16:56:16 +08:00
|
|
|
},
|
2017-09-26 14:45:27 +08:00
|
|
|
}
|
2017-11-17 17:26:13 +08:00
|
|
|
},
|
2024-07-12 12:57:36 +08:00
|
|
|
new PreviewTimePart
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Height = 0.4f,
|
|
|
|
},
|
2024-08-20 16:45:37 +08:00
|
|
|
new BreakPart
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
2024-07-12 12:57:36 +08:00
|
|
|
new ControlPointPart
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.BottomCentre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Height = 0.4f
|
|
|
|
},
|
|
|
|
new BookmarkPart
|
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
2024-07-12 17:10:52 +08:00
|
|
|
Height = 0.4f
|
2024-07-12 12:57:36 +08:00
|
|
|
},
|
2024-07-08 18:41:23 +08:00
|
|
|
new MarkerPart { RelativeSizeAxes = Axes.Both },
|
2017-09-26 16:56:16 +08:00
|
|
|
};
|
2017-09-26 14:45:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|