mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Add explanatory comment
This commit is contained in:
parent
318f830cd2
commit
1729d43cec
@ -1018,6 +1018,8 @@ namespace osu.Game
|
|||||||
|
|
||||||
var horizontalOffset = 0f;
|
var horizontalOffset = 0f;
|
||||||
|
|
||||||
|
// Calculate the horizontal offset using Content, as it gets nested inside a ScalingMode.Everything container
|
||||||
|
// which should apply to overlays, but not get affected by modes like ScalingMode.ExcludeOverlays which shouldn't.
|
||||||
if (Settings.IsLoaded && Settings.IsPresent)
|
if (Settings.IsLoaded && Settings.IsPresent)
|
||||||
horizontalOffset += Content.ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X * SIDE_OVERLAY_OFFSET_RATIO;
|
horizontalOffset += Content.ToLocalSpace(Settings.ScreenSpaceDrawQuad.TopRight).X * SIDE_OVERLAY_OFFSET_RATIO;
|
||||||
if (Notifications.IsLoaded && Notifications.IsPresent)
|
if (Notifications.IsLoaded && Notifications.IsPresent)
|
||||||
|
Loading…
Reference in New Issue
Block a user