From 6eac19e76b2b394f611e96bb0fa965d90f35df3a Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Fri, 19 May 2017 16:12:47 -0300 Subject: [PATCH] Move constructor above methods in DirectPanel --- osu.Game/Overlays/Direct/DirectPanel.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/osu.Game/Overlays/Direct/DirectPanel.cs b/osu.Game/Overlays/Direct/DirectPanel.cs index c15bc6372d..5b11326745 100644 --- a/osu.Game/Overlays/Direct/DirectPanel.cs +++ b/osu.Game/Overlays/Direct/DirectPanel.cs @@ -19,16 +19,21 @@ namespace osu.Game.Overlays.Direct { protected readonly BeatmapSetInfo SetInfo; + public DirectPanel(BeatmapSetInfo setInfo) + { + SetInfo = setInfo; + } + protected IEnumerable GetDifficultyIcons() { var icons = new List(); - + foreach (var b in SetInfo.Beatmaps) icons.Add(new DifficultyIcon(b)); - + return icons; } - + protected Drawable GetBackground(TextureStore textures) { return new AsyncLoadWrapper(new Sprite @@ -38,11 +43,6 @@ namespace osu.Game.Overlays.Direct }) { RelativeSizeAxes = Axes.Both }; } - public DirectPanel(BeatmapSetInfo setInfo) - { - SetInfo = setInfo; - } - public class Statistic : FillFlowContainer { private readonly SpriteText text;