// Copyright (c) ppy Pty Ltd . 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.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Beatmaps; using osu.Game.Graphics; using osu.Game.Screens.Multi.Components; using osuTK.Graphics; namespace osu.Game.Screens.Multi.Lounge.Components { public class RoomInspector : MultiplayerComposite { private const float transition_duration = 100; private readonly MarginPadding contentPadding = new MarginPadding { Horizontal = 20, Vertical = 10 }; [Resolved] private BeatmapManager beatmaps { get; set; } [BackgroundDependencyLoader] private void load(OsuColour colours) { InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = Color4.Black, Alpha = 0.25f }, new Container { RelativeSizeAxes = Axes.Both, Padding = new MarginPadding { Horizontal = 30 }, Child = new GridContainer { RelativeSizeAxes = Axes.Both, Content = new[] { new Drawable[] { new FillFlowContainer { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Direction = FillDirection.Vertical, Children = new Drawable[] { new RoomInfo { RelativeSizeAxes = Axes.X, Margin = new MarginPadding { Vertical = 60 }, }, new OverlinedParticipants(Direction.Horizontal) { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y }, } } }, new Drawable[] { new OverlinedPlaylist(false) { RelativeSizeAxes = Axes.Both }, }, }, RowDimensions = new[] { new Dimension(GridSizeMode.AutoSize), } } } }; } } }