// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Graphics; using osu.Game.Screens.OnlinePlay.Playlists; using osuTK; namespace osu.Game.Screens.OnlinePlay.Match.Components { public class Footer : CompositeDrawable { public const float HEIGHT = 50; public Action OnStart; private readonly Drawable background; public Footer() { RelativeSizeAxes = Axes.X; Height = HEIGHT; InternalChildren = new[] { background = new Box { RelativeSizeAxes = Axes.Both }, new PlaylistsReadyButton { Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(600, 50), Action = () => OnStart?.Invoke() } }; } [BackgroundDependencyLoader] private void load(OsuColour colours) { background.Colour = Color4Extensions.FromHex(@"28242d"); } } }