1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Remove unnecessary extra property

This commit is contained in:
smoogipoo 2019-06-25 18:38:14 +09:00
parent 5b294ba419
commit aa81c95f30
4 changed files with 2 additions and 11 deletions

View File

@ -808,7 +808,7 @@ namespace osu.Game
else
Toolbar.Show();
if (newOsuScreen.ShowBackButton)
if (newOsuScreen.AllowBackButton)
backButton.Show();
else
backButton.Hide();

View File

@ -17,11 +17,6 @@ namespace osu.Game.Screens
/// </summary>
bool DisallowExternalBeatmapRulesetChanges { get; }
/// <summary>
/// Whether a visual display for the back button should be shown.
/// </summary>
bool ShowBackButton { get; }
/// <summary>
/// Whether the user can exit this this <see cref="IOsuScreen"/> by pressing the back button.
/// </summary>

View File

@ -27,9 +27,7 @@ namespace osu.Game.Screens.Menu
public override bool HideOverlaysOnEnter => buttons == null || buttons.State == ButtonSystemState.Initial;
public override bool ShowBackButton => false;
public override bool AllowBackButton => buttons.State != ButtonSystemState.Initial && host.CanExit;
public override bool AllowBackButton => false;
public override bool AllowExternalScreenChange => true;

View File

@ -34,8 +34,6 @@ namespace osu.Game.Screens
public string Description => Title;
public virtual bool ShowBackButton => AllowBackButton;
public virtual bool AllowBackButton => true;
public virtual bool AllowExternalScreenChange => false;