From 1af39b6b5bd2d6619ca2750e5787bd9e54d166ac Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 29 May 2025 03:05:07 +0900 Subject: [PATCH] Fix personal best being cut off weirdly --- .../Screens/SelectV2/BeatmapLeaderboardWedge.cs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs b/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs index 29affaa9af..1f63e3de9f 100644 --- a/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs +++ b/osu.Game/Screens/SelectV2/BeatmapLeaderboardWedge.cs @@ -10,7 +10,6 @@ using osu.Framework.Bindables; using osu.Framework.Extensions.PolygonExtensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; -using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Sprites; using osu.Game.Beatmaps; using osu.Game.Graphics; @@ -70,7 +69,7 @@ namespace osu.Game.Screens.SelectV2 private readonly IBindable fetchedScores = new Bindable(); - private const float personal_best_height = 80; + private const float personal_best_height = 100; [BackgroundDependencyLoader] private void load() @@ -109,7 +108,10 @@ namespace osu.Game.Screens.SelectV2 RelativeSizeAxes = Axes.X, Height = personal_best_height, Shear = OsuGame.SHEAR, - Margin = new MarginPadding { Left = -40f }, + Margin = new MarginPadding + { + Left = -40f, + }, CornerRadius = 10f, Masking = true, // push the personal best 1px down to hide masking issues @@ -118,11 +120,7 @@ namespace osu.Game.Screens.SelectV2 Alpha = 0f, Children = new Drawable[] { - new Box - { - RelativeSizeAxes = Axes.Both, - Colour = colourProvider.Background4, - }, + new WedgeBackground(), new Container { RelativeSizeAxes = Axes.X,