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:
parent
9d08bc2b50
commit
d7e4038f4a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user