1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 07:13:43 +08:00

Move constructor above methods in DirectPanel

This commit is contained in:
DrabWeb
2017-05-19 16:12:47 -03:00
Unverified
parent c3d753a585
commit 6eac19e76b
+8 -8
View File
@@ -19,16 +19,21 @@ namespace osu.Game.Overlays.Direct
{
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 @@ namespace osu.Game.Overlays.Direct
}) { RelativeSizeAxes = Axes.Both };
}
public DirectPanel(BeatmapSetInfo setInfo)
{
SetInfo = setInfo;
}
public class Statistic : FillFlowContainer
{
private readonly SpriteText text;