Move DrawableCarouselBeatmap initialisation to BDL

oops
This commit is contained in:
Dean Herbert 2017-12-15 18:38:09 +09:00
parent e6cac4a675
commit acfdd32783
1 changed files with 9 additions and 10 deletions

View File

@ -26,14 +26,20 @@ public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
{
private readonly BeatmapInfo beatmap;
private readonly Sprite background;
private Sprite background;
public Action<BeatmapInfo> StartRequested;
public Action<BeatmapInfo> EditRequested;
public Action<BeatmapInfo> HideRequested;
private readonly Triangles triangles;
private readonly StarCounter starCounter;
private Triangles triangles;
private StarCounter starCounter;
public DrawableCarouselBeatmap(CarouselBeatmap panel) : base(panel)
{
beatmap = panel.Beatmap;
Height *= 0.60f;
}
[BackgroundDependencyLoader(true)]
private void load(SongSelect songSelect, BeatmapManager manager)
@ -46,13 +52,6 @@ private void load(SongSelect songSelect, BeatmapManager manager)
if (manager != null)
HideRequested = manager.Hide;
}
public DrawableCarouselBeatmap(CarouselBeatmap panel)
: base(panel)
{
beatmap = panel.Beatmap;
Height *= 0.60f;
Children = new Drawable[]
{