mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Simplify vertical position calculations by including spacing in height definition
This commit is contained in:
@ -33,7 +33,12 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
public const float CAROUSEL_BEATMAP_SPACING = 5;
|
||||
|
||||
public const float HEIGHT = MAX_HEIGHT * 0.6f; // TODO: add once base class is fixed + CAROUSEL_BEATMAP_SPACING;
|
||||
/// <summary>
|
||||
/// The height of a carousel beatmap, including vertical spacing.
|
||||
/// </summary>
|
||||
public const float HEIGHT = height + CAROUSEL_BEATMAP_SPACING;
|
||||
|
||||
private const float height = MAX_HEIGHT * 0.6f;
|
||||
|
||||
private readonly BeatmapInfo beatmap;
|
||||
|
||||
@ -70,7 +75,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(BeatmapManager manager, SongSelect songSelect)
|
||||
{
|
||||
Header.Height = HEIGHT;
|
||||
Header.Height = height;
|
||||
|
||||
if (songSelect != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user