mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 20:42:54 +08:00
Expose panel height from non-drawable models
This commit is contained in:
parent
a393bbe8f7
commit
9193f5b0ba
@ -12,6 +12,8 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
{
|
{
|
||||||
public class CarouselBeatmapSet : CarouselGroupEagerSelect
|
public class CarouselBeatmapSet : CarouselGroupEagerSelect
|
||||||
{
|
{
|
||||||
|
public float TotalHeight => DrawableCarouselBeatmapSet.HEIGHT + BeatmapSet.Beatmaps.Count * DrawableCarouselBeatmap.HEIGHT;
|
||||||
|
|
||||||
public IEnumerable<CarouselBeatmap> Beatmaps => InternalChildren.OfType<CarouselBeatmap>();
|
public IEnumerable<CarouselBeatmap> Beatmaps => InternalChildren.OfType<CarouselBeatmap>();
|
||||||
|
|
||||||
public BeatmapSetInfo BeatmapSet;
|
public BeatmapSetInfo BeatmapSet;
|
||||||
|
@ -31,6 +31,8 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
{
|
{
|
||||||
public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
|
public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
|
||||||
{
|
{
|
||||||
|
public const float HEIGHT = MAX_HEIGHT;
|
||||||
|
|
||||||
private readonly BeatmapInfo beatmap;
|
private readonly BeatmapInfo beatmap;
|
||||||
|
|
||||||
private Sprite background;
|
private Sprite background;
|
||||||
|
@ -29,6 +29,8 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
{
|
{
|
||||||
public class DrawableCarouselBeatmapSet : DrawableCarouselItem, IHasContextMenu
|
public class DrawableCarouselBeatmapSet : DrawableCarouselItem, IHasContextMenu
|
||||||
{
|
{
|
||||||
|
public const float HEIGHT = MAX_HEIGHT;
|
||||||
|
|
||||||
private Action<BeatmapSetInfo> restoreHiddenRequested;
|
private Action<BeatmapSetInfo> restoreHiddenRequested;
|
||||||
private Action<int> viewDetails;
|
private Action<int> viewDetails;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user