1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 19:07:19 +08:00

81 lines
3.0 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;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
2018-12-10 19:20:41 +09:00
using osu.Game.Screens.Multi.Components;
2018-11-20 16:51:59 +09:00
using osuTK.Graphics;
2018-04-13 18:19:50 +09:00
2018-12-10 19:20:41 +09:00
namespace osu.Game.Screens.Multi.Lounge.Components
2018-04-13 18:19:50 +09:00
{
2019-02-05 19:00:01 +09:00
public class RoomInspector : MultiplayerComposite
2018-04-13 18:19:50 +09:00
{
private const float transition_duration = 100;
private readonly MarginPadding contentPadding = new MarginPadding { Horizontal = 20, Vertical = 10 };
2018-04-13 18:19:50 +09:00
2018-12-06 12:21:30 +09:00
[Resolved]
private BeatmapManager beatmaps { get; set; }
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
2019-02-05 19:00:01 +09:00
InternalChildren = new Drawable[]
2018-04-13 18:19:50 +09:00
{
new Box
{
RelativeSizeAxes = Axes.Both,
2020-02-19 17:47:59 +09:00
Colour = Color4.Black,
Alpha = 0.25f
2018-04-13 18:19:50 +09:00
},
2020-02-19 17:47:59 +09:00
new Container
2018-04-13 18:19:50 +09:00
{
RelativeSizeAxes = Axes.Both,
2020-02-19 17:47:59 +09:00
Padding = new MarginPadding { Horizontal = 30 },
Child = new GridContainer
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
RelativeSizeAxes = Axes.Both,
Content = new[]
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
new Drawable[]
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
new FillFlowContainer
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Children = new Drawable[]
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
new RoomInfo
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
RelativeSizeAxes = Axes.X,
Margin = new MarginPadding { Vertical = 60 },
2018-04-13 18:19:50 +09:00
},
2020-02-19 17:47:59 +09:00
new OverlinedParticipants(Direction.Horizontal)
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y
2018-04-13 18:19:50 +09:00
},
2020-02-19 17:47:59 +09:00
}
}
},
new Drawable[]
{
new OverlinedPlaylist(false) { RelativeSizeAxes = Axes.Both },
2018-04-13 18:19:50 +09:00
},
},
2020-02-19 17:47:59 +09:00
RowDimensions = new[]
2018-04-13 18:19:50 +09:00
{
2020-02-19 17:47:59 +09:00
new Dimension(GridSizeMode.AutoSize),
}
}
}
2018-04-13 18:19:50 +09:00
};
2019-02-07 17:59:14 +09:00
}
2018-04-13 18:19:50 +09:00
}
}