mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 14:37:39 +09:00
Fix autoplay/replay settings going off screen on some legacy skins
This commit is contained in:
parent
b9c1d21743
commit
dbda18acea
@ -208,17 +208,9 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
float topRightOffset = 0;
|
// for now align with the accuracy counter. eventually this will be user customisable.
|
||||||
|
topRightElements.Y = ToLocalSpace(AccuracyCounter.Drawable.ScreenSpaceDrawQuad.BottomRight).Y;
|
||||||
|
|
||||||
// fetch the bottom-most position of any main ui element that is anchored to the top of the screen.
|
|
||||||
// consider this kind of temporary.
|
|
||||||
foreach (var d in mainUIElements)
|
|
||||||
{
|
|
||||||
if (d is SkinnableDrawable sd && (sd.Drawable.Anchor & Anchor.y0) > 0)
|
|
||||||
topRightOffset = Math.Max(sd.Drawable.ScreenSpaceDrawQuad.BottomRight.Y, topRightOffset);
|
|
||||||
}
|
|
||||||
|
|
||||||
topRightElements.Y = ToLocalSpace(new Vector2(0, topRightOffset)).Y;
|
|
||||||
bottomRightElements.Y = -Progress.Height;
|
bottomRightElements.Y = -Progress.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user