mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Don't expose padding
This commit is contained in:
parent
b48bb5b792
commit
f85518b175
@ -116,7 +116,6 @@ namespace osu.Game.Screens.Multi.Match
|
||||
header.OnRequestSelectBeatmap = () => this.Push(new MatchSongSelect
|
||||
{
|
||||
Selected = addPlaylistItem,
|
||||
Padding = new MarginPadding { Horizontal = OsuScreen.HORIZONTAL_OVERFLOW_PADDING }
|
||||
});
|
||||
|
||||
header.Tabs.Current.ValueChanged += t =>
|
||||
|
@ -85,12 +85,6 @@ namespace osu.Game.Screens
|
||||
sampleExit = audio.Sample.Get(@"UI/screen-back");
|
||||
}
|
||||
|
||||
public MarginPadding Padding
|
||||
{
|
||||
get => base.Padding;
|
||||
set => base.Padding = value;
|
||||
}
|
||||
|
||||
public virtual bool OnPressed(GlobalAction action)
|
||||
{
|
||||
if (!this.IsCurrentScreen()) return false;
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using Humanizer;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Screens;
|
||||
using osu.Game.Online.Multiplayer;
|
||||
using osu.Game.Screens.Multi;
|
||||
@ -16,6 +17,11 @@ namespace osu.Game.Screens.Select
|
||||
public string ShortTitle => "song selection";
|
||||
public override string Title => ShortTitle.Humanize();
|
||||
|
||||
public MatchSongSelect()
|
||||
{
|
||||
Padding = new MarginPadding { Horizontal = HORIZONTAL_OVERFLOW_PADDING };
|
||||
}
|
||||
|
||||
protected override bool OnStart()
|
||||
{
|
||||
var item = new PlaylistItem
|
||||
|
Loading…
Reference in New Issue
Block a user