2022-01-06 16:15:42 +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.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2022-02-14 16:51:39 +08:00
|
|
|
|
using osu.Game.Graphics.Containers;
|
2022-01-06 16:15:42 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Settings
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class SettingsSidebar : ExpandingButtonContainer
|
2022-01-06 16:15:42 +08:00
|
|
|
|
{
|
|
|
|
|
public const float DEFAULT_WIDTH = 70;
|
|
|
|
|
public const int EXPANDED_WIDTH = 200;
|
|
|
|
|
|
|
|
|
|
public SettingsSidebar()
|
|
|
|
|
: base(DEFAULT_WIDTH, EXPANDED_WIDTH)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OverlayColourProvider colourProvider)
|
|
|
|
|
{
|
|
|
|
|
AddInternal(new Box
|
|
|
|
|
{
|
|
|
|
|
Colour = colourProvider.Background5,
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Depth = float.MaxValue
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|