1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 22:22:54 +08:00

Formatting

This commit is contained in:
DrabWeb 2017-04-29 06:28:57 -03:00
parent ef811f3cf3
commit 067b572245
2 changed files with 6 additions and 6 deletions

View File

@ -184,7 +184,7 @@ namespace osu.Game.Overlays
else
return;
}
if (current.Track.IsRunning)
if (current?.Track?.IsRunning ?? false)
current.Track.Stop();
else
current.Track.Start();

View File

@ -24,9 +24,9 @@ namespace osu.Game.Overlays
{
private const float transition_duration = 800;
private Box bg;
private FilterControl filter;
private Playlist list;
private readonly Box bg;
private readonly FilterControl filter;
private readonly Playlist list;
public BeatmapSetInfo[] List
{
@ -216,7 +216,7 @@ namespace osu.Game.Overlays
private class Playlist : Container
{
private FillFlowContainer<PlaylistItem> items;
private readonly FillFlowContainer<PlaylistItem> items;
private BeatmapSetInfo[] sets = { };
public BeatmapSetInfo[] Sets
@ -299,7 +299,7 @@ namespace osu.Game.Overlays
private const float fade_duration = 100;
private Color4 currentColour;
private TextAwesome icon;
private readonly TextAwesome icon;
private readonly IEnumerable<OsuSpriteText> title, artist;
public readonly int Index;