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