Fix some weird formatting

This commit is contained in:
Dean Herbert
2019-02-25 19:19:28 +09:00
parent 6881563346
commit a4e119786f

View File

@ -54,10 +54,10 @@ namespace osu.Game.Screens.Menu
buttons = new ButtonSystem buttons = new ButtonSystem
{ {
OnChart = delegate { this.Push(new ChartListing()); }, OnChart = delegate { this.Push(new ChartListing()); },
OnDirect = delegate {this.Push(new OnlineListing()); }, OnDirect = delegate { this.Push(new OnlineListing()); },
OnEdit = delegate {this.Push(new Editor()); }, OnEdit = delegate { this.Push(new Editor()); },
OnSolo = onSolo, OnSolo = onSolo,
OnMulti = delegate {this.Push(new Multiplayer()); }, OnMulti = delegate { this.Push(new Multiplayer()); },
OnExit = this.Exit, OnExit = this.Exit,
} }
} }
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Menu
public void LoadToSolo() => Schedule(onSolo); public void LoadToSolo() => Schedule(onSolo);
private void onSolo() =>this.Push(consumeSongSelect()); private void onSolo() => this.Push(consumeSongSelect());
private Screen consumeSongSelect() private Screen consumeSongSelect()
{ {
@ -184,7 +184,7 @@ namespace osu.Game.Screens.Menu
{ {
base.OnResuming(last); base.OnResuming(last);
((BackgroundScreenDefault)Background).Next(); (Background as BackgroundScreenDefault)?.Next();
//we may have consumed our preloaded instance, so let's make another. //we may have consumed our preloaded instance, so let's make another.
preloadSongSelect(); preloadSongSelect();