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 new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING }, Padding = new MarginPadding { Horizontal = SearchableListOverlay.WIDTH_PADDING + Multiplayer.OVERFLOW_PADDING },
Children = new Drawable[] Children = new Drawable[]
{ {
new FillFlowContainer new FillFlowContainer

View File

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

View File

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

View File

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