mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Calculate horizontal offset on present overlays only
This commit is contained in:
parent
b58b5ec2b4
commit
3d7866e82d
@ -1015,9 +1015,9 @@ namespace osu.Game
|
||||
|
||||
var horizontalOffset = 0f;
|
||||
|
||||
if (Settings.IsLoaded)
|
||||
if (Settings.IsLoaded && Settings.IsPresent)
|
||||
horizontalOffset += (ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X) * SCREEN_OFFSET_RATIO;
|
||||
if (Notifications.IsLoaded)
|
||||
if (Notifications.IsLoaded && Notifications.IsPresent)
|
||||
horizontalOffset += (ToLocalSpace(Notifications.ScreenSpaceDrawQuad.TopLeft).X - DrawWidth) * SCREEN_OFFSET_RATIO;
|
||||
|
||||
ScreenOffsetContainer.X = horizontalOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user