1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 23:37:26 +08:00
osu-lazer/osu.Game/Screens/Edit/Components/Timelines/Summary/SummaryTimeline.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
2.7 KiB
C#
Raw Normal View History

// 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
2018-11-20 15:51:59 +08:00
using osuTK;
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;
using osu.Game.Graphics;
using osu.Game.Screens.Edit.Components.Timelines.Summary.Parts;
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>
public class SummaryTimeline : BottomBarContainer
2017-09-26 14:45:27 +08:00
{
2018-03-19 15:27:52 +08:00
[BackgroundDependencyLoader]
private void load(OsuColour colours)
2017-09-26 14:45:27 +08:00
{
2018-03-19 15:27:52 +08:00
Children = new Drawable[]
2017-09-26 14:45:27 +08:00
{
new MarkerPart { RelativeSizeAxes = Axes.Both },
new ControlPointPart
{
Anchor = Anchor.Centre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both,
Y = -10,
Height = 0.35f
},
new BookmarkPart
{
Anchor = Anchor.Centre,
Origin = Anchor.TopCentre,
RelativeSizeAxes = Axes.Both,
Height = 0.35f
},
2018-03-19 15:27:52 +08:00
new Container
{
2021-04-15 15:33:29 +08:00
Name = "centre line",
RelativeSizeAxes = Axes.Both,
2018-03-19 15:27:52 +08:00
Colour = colours.Gray5,
Children = new Drawable[]
2017-09-26 14:45:27 +08:00
{
new Circle
2017-09-26 14:45:27 +08:00
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.Centre,
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,
Origin = Anchor.Centre,
Size = new Vector2(5)
},
2017-09-26 14:45:27 +08:00
}
},
new BreakPart
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
Height = 0.10f
}
};
2017-09-26 14:45:27 +08:00
}
}
}