1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 14:37:21 +08:00
osu-lazer/osu.Game/Screens/Edit/Components/BottomBarContainer.cs

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