mirror of https://github.com/ppy/osu
parent
e6cac4a675
commit
acfdd32783
|
@ -26,14 +26,20 @@ public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
|
||||||
{
|
{
|
||||||
private readonly BeatmapInfo beatmap;
|
private readonly BeatmapInfo beatmap;
|
||||||
|
|
||||||
private readonly Sprite background;
|
private Sprite background;
|
||||||
|
|
||||||
public Action<BeatmapInfo> StartRequested;
|
public Action<BeatmapInfo> StartRequested;
|
||||||
public Action<BeatmapInfo> EditRequested;
|
public Action<BeatmapInfo> EditRequested;
|
||||||
public Action<BeatmapInfo> HideRequested;
|
public Action<BeatmapInfo> HideRequested;
|
||||||
|
|
||||||
private readonly Triangles triangles;
|
private Triangles triangles;
|
||||||
private readonly StarCounter starCounter;
|
private StarCounter starCounter;
|
||||||
|
|
||||||
|
public DrawableCarouselBeatmap(CarouselBeatmap panel) : base(panel)
|
||||||
|
{
|
||||||
|
beatmap = panel.Beatmap;
|
||||||
|
Height *= 0.60f;
|
||||||
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(SongSelect songSelect, BeatmapManager manager)
|
private void load(SongSelect songSelect, BeatmapManager manager)
|
||||||
|
@ -46,13 +52,6 @@ private void load(SongSelect songSelect, BeatmapManager manager)
|
||||||
|
|
||||||
if (manager != null)
|
if (manager != null)
|
||||||
HideRequested = manager.Hide;
|
HideRequested = manager.Hide;
|
||||||
}
|
|
||||||
|
|
||||||
public DrawableCarouselBeatmap(CarouselBeatmap panel)
|
|
||||||
: base(panel)
|
|
||||||
{
|
|
||||||
beatmap = panel.Beatmap;
|
|
||||||
Height *= 0.60f;
|
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue