1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 12:02:54 +08:00

Make extended score panel taller to better fit all information

This commit is contained in:
Dean Herbert 2020-10-07 16:30:26 +09:00
parent 67398b5d95
commit 31d347be5c
2 changed files with 7 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace osu.Game.Screens.Ranking
/// <summary>
/// Height of the panel when expanded.
/// </summary>
private const float expanded_height = 560;
private const float expanded_height = 586;
/// <summary>
/// Height of the top layer when the panel is expanded.
@ -105,11 +105,16 @@ namespace osu.Game.Screens.Ranking
[BackgroundDependencyLoader]
private void load()
{
// ScorePanel doesn't include the top extruding area in its own size.
// Adding a manual offset here allows the expanded version to take on an "acceptable" vertical centre when at 100% UI scale.
const float vertical_fudge = 20;
InternalChild = content = new Container
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Size = new Vector2(40),
Y = vertical_fudge,
Children = new Drawable[]
{
topLayerContainer = new Container

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text.
using System;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Screens.Ranking