Add overflow padding in other multiplayer screen components

Added padding to Room Creation and Beatmap Selection in Multiplayer.
This commit is contained in:
ProgrammaticNajel 2019-01-24 19:42:35 +08:00
parent 9fcefa7d69
commit 593e0b36f5
2 changed files with 11 additions and 2 deletions

View File

@ -79,7 +79,11 @@ namespace osu.Game.Screens.Multi.Match.Components
{
new ScrollContainer
{
Padding = new MarginPadding { Vertical = 10 },
Padding = new MarginPadding
{
Horizontal = Multiplayer.OVERFLOW_PADDING,
Vertical = 10
},
RelativeSizeAxes = Axes.Both,
Children = new[]
{
@ -210,6 +214,7 @@ namespace osu.Game.Screens.Multi.Match.Components
Direction = FillDirection.Vertical,
Spacing = new Vector2(0, 20),
Margin = new MarginPadding { Vertical = 20 },
Padding = new MarginPadding { Horizontal = Multiplayer.OVERFLOW_PADDING },
Children = new Drawable[]
{
ApplyButton = new CreateRoomButton

View File

@ -118,7 +118,11 @@ namespace osu.Game.Screens.Multi.Match
},
};
header.OnRequestSelectBeatmap = () => Push(new MatchSongSelect { Selected = addPlaylistItem });
header.OnRequestSelectBeatmap = () => Push(new MatchSongSelect
{
Selected = addPlaylistItem,
Padding = new MarginPadding { Horizontal = Multiplayer.OVERFLOW_PADDING }
});
header.Tabs.Current.ValueChanged += t =>
{
const float fade_duration = 500;