1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-01 14:22:56 +08:00
osu-lazer/osu.Game/Screens/Edit/Components/BottomBarContainer.cs

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

51 lines
1.4 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
using osu.Framework.Allocation;
2019-02-21 18:04:31 +08:00
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osuTK.Graphics;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Screens.Edit.Components
{
public partial class BottomBarContainer : Container
{
private const float contents_padding = 15;
2018-04-13 17:19:50 +08:00
protected readonly IBindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
public readonly Drawable Background;
private readonly Container content;
2018-04-13 17:19:50 +08:00
protected override Container<Drawable> Content => content;
2018-04-13 17:19:50 +08:00
public BottomBarContainer()
{
Masking = true;
2018-04-13 17:19:50 +08:00
InternalChildren = new[]
{
Background = new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Transparent,
},
content = new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = contents_padding },
}
};
}
2018-04-13 17:19:50 +08:00
[BackgroundDependencyLoader]
2025-01-07 18:26:08 +08:00
private void load(IBindable<WorkingBeatmap> beatmap)
{
Beatmap.BindTo(beatmap);
}
}
}