mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 21:27:22 +09:00
Make extended score panel taller to better fit all information
This commit is contained in:
parent
67398b5d95
commit
31d347be5c
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Height of the panel when expanded.
|
/// Height of the panel when expanded.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const float expanded_height = 560;
|
private const float expanded_height = 586;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Height of the top layer when the panel is expanded.
|
/// Height of the top layer when the panel is expanded.
|
||||||
@ -105,11 +105,16 @@ namespace osu.Game.Screens.Ranking
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
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
|
InternalChild = content = new Container
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Size = new Vector2(40),
|
Size = new Vector2(40),
|
||||||
|
Y = vertical_fudge,
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
topLayerContainer = new Container
|
topLayerContainer = new Container
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Ranking
|
namespace osu.Game.Screens.Ranking
|
||||||
|
Loading…
x
Reference in New Issue
Block a user