mirror of
https://github.com/ppy/osu.git
synced 2025-03-23 08:27:23 +08:00
Move constructor above methods in DirectPanel
This commit is contained in:
parent
c3d753a585
commit
6eac19e76b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user