Move constructor above methods in DirectPanel

This commit is contained in:
DrabWeb 2017-05-19 16:12:47 -03:00
parent c3d753a585
commit 6eac19e76b
1 changed files with 8 additions and 8 deletions

View File

@ -19,16 +19,21 @@ public abstract class DirectPanel : Container
{
protected readonly BeatmapSetInfo SetInfo;
public DirectPanel(BeatmapSetInfo setInfo)
{
SetInfo = setInfo;
}
protected IEnumerable<DifficultyIcon> GetDifficultyIcons()
{
var icons = new List<DifficultyIcon>();
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 @@ protected Drawable GetBackground(TextureStore textures)
}) { RelativeSizeAxes = Axes.Both };
}
public DirectPanel(BeatmapSetInfo setInfo)
{
SetInfo = setInfo;
}
public class Statistic : FillFlowContainer
{
private readonly SpriteText text;