1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Add overflow padding in other multiplayer screen components

Added overflow padding in room selection screen (Header, Room Info, Leaderboards, and Room Chat)
This commit is contained in:
ProgrammaticNajel 2019-01-24 17:40:48 +08:00
parent 7ac20c3545
commit e4084b7d5d
4 changed files with 15 additions and 9 deletions

View File

@ -70,7 +70,7 @@ namespace osu.Game.Screens.Multi.Match.Components
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING },
Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING + Multiplayer.OVERFLOW_PADDING },
Children = new Drawable[]
{
new FillFlowContainer

View File

@ -41,7 +41,7 @@ namespace osu.Game.Screens.Multi.Match.Components
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING },
Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING + Multiplayer.OVERFLOW_PADDING },
Children = new Drawable[]
{
new FillFlowContainer

View File

@ -75,13 +75,23 @@ namespace osu.Game.Screens.Multi.Match
{
leaderboard = new MatchLeaderboard
{
Padding = new MarginPadding(10),
Padding = new MarginPadding
{
Left = 10 + Multiplayer.OVERFLOW_PADDING,
Right = 10,
Vertical = 10,
},
RelativeSizeAxes = Axes.Both,
Room = room
},
new Container
{
Padding = new MarginPadding(10),
Padding = new MarginPadding
{
Left = 10,
Right = 10 + Multiplayer.OVERFLOW_PADDING,
Vertical = 10,
},
RelativeSizeAxes = Axes.Both,
Child = chat = new MatchChatDisplay(room)
{

View File

@ -53,11 +53,7 @@ namespace osu.Game.Screens.Multi
RelativeSizeAxes = Axes.Both,
};
Padding = new MarginPadding
{
Left = -OVERFLOW_PADDING,
Right = -OVERFLOW_PADDING
};
Padding = new MarginPadding { Horizontal = -OVERFLOW_PADDING };
waves.AddRange(new Drawable[]
{