mirror of
https://github.com/osukey/osukey.git
synced 2025-05-23 06:27:24 +09:00
Remove unnecessary extra property
This commit is contained in:
parent
5b294ba419
commit
aa81c95f30
@ -808,7 +808,7 @@ namespace osu.Game
|
|||||||
else
|
else
|
||||||
Toolbar.Show();
|
Toolbar.Show();
|
||||||
|
|
||||||
if (newOsuScreen.ShowBackButton)
|
if (newOsuScreen.AllowBackButton)
|
||||||
backButton.Show();
|
backButton.Show();
|
||||||
else
|
else
|
||||||
backButton.Hide();
|
backButton.Hide();
|
||||||
|
@ -17,11 +17,6 @@ namespace osu.Game.Screens
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
bool DisallowExternalBeatmapRulesetChanges { get; }
|
bool DisallowExternalBeatmapRulesetChanges { get; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Whether a visual display for the back button should be shown.
|
|
||||||
/// </summary>
|
|
||||||
bool ShowBackButton { get; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the user can exit this this <see cref="IOsuScreen"/> by pressing the back button.
|
/// Whether the user can exit this this <see cref="IOsuScreen"/> by pressing the back button.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -27,9 +27,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
public override bool HideOverlaysOnEnter => buttons == null || buttons.State == ButtonSystemState.Initial;
|
public override bool HideOverlaysOnEnter => buttons == null || buttons.State == ButtonSystemState.Initial;
|
||||||
|
|
||||||
public override bool ShowBackButton => false;
|
public override bool AllowBackButton => false;
|
||||||
|
|
||||||
public override bool AllowBackButton => buttons.State != ButtonSystemState.Initial && host.CanExit;
|
|
||||||
|
|
||||||
public override bool AllowExternalScreenChange => true;
|
public override bool AllowExternalScreenChange => true;
|
||||||
|
|
||||||
|
@ -34,8 +34,6 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
public string Description => Title;
|
public string Description => Title;
|
||||||
|
|
||||||
public virtual bool ShowBackButton => AllowBackButton;
|
|
||||||
|
|
||||||
public virtual bool AllowBackButton => true;
|
public virtual bool AllowBackButton => true;
|
||||||
|
|
||||||
public virtual bool AllowExternalScreenChange => false;
|
public virtual bool AllowExternalScreenChange => false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user