1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 00:30:21 +08:00

Keep game in portrait mode when restarting

This commit is contained in:
Salman Alshamrani
2024-12-29 23:54:04 -05:00
Unverified
parent 9d08bc2b50
commit d7e4038f4a
+3
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.