2020-12-20 23:04:06 +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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-20 23:04:06 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
2020-12-25 23:50:00 +08:00
|
|
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
2020-12-25 12:38:11 +08:00
|
|
|
public partial class MultiplayerMatchFooter : CompositeDrawable
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
2021-04-07 16:35:18 +08:00
|
|
|
private const float ready_button_width = 600;
|
|
|
|
private const float spectate_button_width = 200;
|
2020-12-20 23:04:06 +08:00
|
|
|
|
2020-12-25 12:38:11 +08:00
|
|
|
public MultiplayerMatchFooter()
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
2021-08-18 19:21:29 +08:00
|
|
|
RelativeSizeAxes = Axes.Both;
|
2020-12-20 23:04:06 +08:00
|
|
|
|
2021-08-18 19:21:29 +08:00
|
|
|
InternalChild = new GridContainer
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
2021-08-18 19:21:29 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Content = new[]
|
2020-12-20 23:04:06 +08:00
|
|
|
{
|
2021-08-18 19:21:29 +08:00
|
|
|
new Drawable[]
|
2021-04-07 16:35:18 +08:00
|
|
|
{
|
2021-08-18 19:21:29 +08:00
|
|
|
null,
|
2022-03-17 17:36:33 +08:00
|
|
|
new MultiplayerSpectateButton
|
2021-04-07 16:35:18 +08:00
|
|
|
{
|
2021-08-18 19:21:29 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
|
|
|
null,
|
2022-03-23 09:37:53 +08:00
|
|
|
new MatchStartControl
|
2021-08-18 19:21:29 +08:00
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
},
|
|
|
|
null
|
2021-04-07 16:35:18 +08:00
|
|
|
}
|
2021-08-18 19:21:29 +08:00
|
|
|
},
|
|
|
|
ColumnDimensions = new[]
|
|
|
|
{
|
|
|
|
new Dimension(),
|
|
|
|
new Dimension(maxSize: spectate_button_width),
|
2021-08-19 18:08:46 +08:00
|
|
|
new Dimension(GridSizeMode.Absolute, 5),
|
2021-08-18 19:21:29 +08:00
|
|
|
new Dimension(maxSize: ready_button_width),
|
|
|
|
new Dimension()
|
2020-12-20 23:04:06 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|