Allow UserStatusSoloGame to provide metadata such as the ruleset the current beatmap is played in

This commit is contained in:
Lucas A
2019-04-13 13:18:44 +02:00
parent 5ab278f9ea
commit 361c0ec9f2
4 changed files with 9 additions and 3 deletions

View File

@ -34,7 +34,7 @@ namespace osu.Game.Screens.Play
{
protected override bool AllowBackButton => false; // handled by HoldForMenuButton
protected override UserStatus ScreenStatus => new UserStatusSoloGame(Beatmap.Value.BeatmapInfo);
protected override UserStatus ScreenStatus => new UserStatusSoloGame(Beatmap.Value.BeatmapInfo, Ruleset.Value);
public override float BackgroundParallaxAmount => 0.1f;

View File

@ -19,6 +19,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Screens.Menu;
using osu.Game.Screens.Play.HUD;
using osu.Game.Screens.Play.PlayerSettings;
using osu.Game.Users;
using osuTK;
using osuTK.Graphics;
@ -39,6 +40,8 @@ namespace osu.Game.Screens.Play
private bool hideOverlays;
public override bool HideOverlaysOnEnter => hideOverlays;
protected override UserStatus ScreenStatus => null; //shows the previous screen status
public override bool DisallowExternalBeatmapRulesetChanges => true;
private Task loadTask;