1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 04:22:55 +08:00

Fix break overlay progress bar becoming a pancake near end of break

This commit is contained in:
Dean Herbert 2024-07-10 19:28:25 +09:00
parent 1381b3c0c5
commit 75344f9c5c
No known key found for this signature in database

View File

@ -3,6 +3,7 @@
#nullable disable
using System;
using System.Collections.Generic;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
@ -75,15 +76,13 @@ namespace osu.Game.Screens.Play
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Width = 0,
Child = remainingTimeBox = new Container
Child = remainingTimeBox = new Circle
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
Height = 8,
CornerRadius = 4,
Masking = true,
Child = new Box { RelativeSizeAxes = Axes.Both }
}
},
remainingTimeCounter = new RemainingTimeCounter
@ -119,6 +118,13 @@ namespace osu.Game.Screens.Play
}
}
protected override void Update()
{
base.Update();
remainingTimeBox.Height = Math.Min(8, remainingTimeBox.DrawWidth);
}
private void initializeBreaks()
{
FinishTransforms(true);