mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Remove unnecessary extra property
This commit is contained in:
parent
5b294ba419
commit
aa81c95f30
@ -808,7 +808,7 @@ namespace osu.Game
|
||||
else
|
||||
Toolbar.Show();
|
||||
|
||||
if (newOsuScreen.ShowBackButton)
|
||||
if (newOsuScreen.AllowBackButton)
|
||||
backButton.Show();
|
||||
else
|
||||
backButton.Hide();
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user