Skip to content

Commit 10a10ff

Browse files
authored
Merge pull request #33853 from peppy/fix-settings-disappearing
Fix player settings overlay potentially disappearing unexpectedly
2 parents b827299 + c0a51da commit 10a10ff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

osu.Game/Screens/Play/HUD/PlayerSettingsOverlay.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using osu.Framework.Graphics;
77
using osu.Framework.Graphics.Colour;
88
using osu.Framework.Graphics.Containers;
9+
using osu.Framework.Graphics.Primitives;
910
using osu.Framework.Graphics.Shapes;
1011
using osu.Framework.Graphics.Sprites;
1112
using osu.Framework.Input;
@@ -47,6 +48,12 @@ public partial class PlayerSettingsOverlay : ExpandingContainer
4748
[Resolved]
4849
private HUDOverlay? hudOverlay { get; set; }
4950

51+
// Player settings are kept off the edge of the screen.
52+
//
53+
// In edge cases, floating point error could result in the whole control getting masked away
54+
// while collapsed down, so let's avoid that.
55+
protected override bool ComputeIsMaskedAway(RectangleF maskingBounds) => false;
56+
5057
public PlayerSettingsOverlay()
5158
: base(0, EXPANDED_WIDTH)
5259
{

0 commit comments

Comments
 (0)