mirror of
https://github.com/ppy/osu
synced 2025-02-21 04:57:11 +00:00
Limit automatically calculated HUD offsets to keep menu items on screen
This commit is contained in:
parent
babe24ff5d
commit
593fea0d5f
@ -196,12 +196,12 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
if (lowestTopScreenSpace.HasValue)
|
||||
topRightElements.Y = TopScoringElementsHeight = ToLocalSpace(lowestTopScreenSpace.Value).Y;
|
||||
topRightElements.Y = TopScoringElementsHeight = Math.Max(0, ToLocalSpace(lowestTopScreenSpace.Value).Y);
|
||||
else
|
||||
topRightElements.Y = 0;
|
||||
|
||||
if (highestBottomScreenSpace.HasValue)
|
||||
bottomRightElements.Y = BottomScoringElementsHeight = -(DrawHeight - ToLocalSpace(highestBottomScreenSpace.Value).Y);
|
||||
bottomRightElements.Y = BottomScoringElementsHeight = -Math.Max(0, (DrawHeight - ToLocalSpace(highestBottomScreenSpace.Value).Y));
|
||||
else
|
||||
bottomRightElements.Y = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user