Skip to content

Commit

Permalink
Keep game in portrait mode when restarting
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 30, 2024
1 parent e9c6298 commit fee6618
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game/Screens/Play/PlayerLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public partial class PlayerLoader : ScreenWithBeatmapBackground

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.
Expand Down

0 comments on commit fee6618

Please sign in to comment.