1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 15:02:53 +08:00

Keep game in portrait mode when restarting

This commit is contained in:
Salman Alshamrani 2024-12-29 23:54:04 -05:00
parent 9d08bc2b50
commit d7e4038f4a

View File

@ -54,6 +54,9 @@ namespace osu.Game.Screens.Play
public override bool? AllowGlobalTrackControl => false;
// this makes the game stay in portrait mode when restarting gameplay rather than switching back to landscape.
public override bool RequiresPortraitOrientation => CurrentPlayer?.RequiresPortraitOrientation == true;
public override float BackgroundParallaxAmount => quickRestart ? 0 : 1;
// Here because IsHovered will not update unless we do so.