mirror of https://github.com/ppy/osu
84 lines
3.2 KiB
C#
84 lines
3.2 KiB
C#
|
// 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.
|
||
|
|
||
|
using osu.Framework.Allocation;
|
||
|
using osu.Framework.Graphics;
|
||
|
using osu.Framework.Graphics.Containers;
|
||
|
using osu.Framework.Graphics.Shapes;
|
||
|
using osu.Game.Overlays;
|
||
|
using osu.Game.Screens.Edit.Components;
|
||
|
using osu.Game.Screens.Edit.Components.Timelines.Summary;
|
||
|
using osuTK;
|
||
|
|
||
|
namespace osu.Game.Screens.Edit
|
||
|
{
|
||
|
internal class BottomBar : CompositeDrawable
|
||
|
{
|
||
|
public TestGameplayButton TestGameplayButton { get; private set; }
|
||
|
|
||
|
[BackgroundDependencyLoader]
|
||
|
private void load(OverlayColourProvider colourProvider, Editor editor)
|
||
|
{
|
||
|
Anchor = Anchor.BottomLeft;
|
||
|
Origin = Anchor.BottomLeft;
|
||
|
|
||
|
RelativeSizeAxes = Axes.X;
|
||
|
|
||
|
Height = 60;
|
||
|
|
||
|
InternalChildren = new Drawable[]
|
||
|
{
|
||
|
new Box
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
Colour = colourProvider.Background4,
|
||
|
},
|
||
|
new Container
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
Child = new GridContainer
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
ColumnDimensions = new[]
|
||
|
{
|
||
|
new Dimension(GridSizeMode.Absolute, 220),
|
||
|
new Dimension(),
|
||
|
new Dimension(GridSizeMode.Absolute, 220),
|
||
|
new Dimension(GridSizeMode.Absolute, 120),
|
||
|
},
|
||
|
Content = new[]
|
||
|
{
|
||
|
new Drawable[]
|
||
|
{
|
||
|
new Container
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
Padding = new MarginPadding { Right = 10 },
|
||
|
Child = new TimeInfoContainer { RelativeSizeAxes = Axes.Both },
|
||
|
},
|
||
|
new SummaryTimeline
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
},
|
||
|
new Container
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
Padding = new MarginPadding { Left = 10 },
|
||
|
Child = new PlaybackControl { RelativeSizeAxes = Axes.Both },
|
||
|
},
|
||
|
TestGameplayButton = new TestGameplayButton
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
Padding = new MarginPadding { Left = 10 },
|
||
|
Size = new Vector2(1),
|
||
|
Action = editor.TestGameplay,
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|