mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 03:27:20 +08:00
Don't require hold for quick exit at results screen
This commit is contained in:
parent
f92833b588
commit
4cffc39dff
@ -191,16 +191,6 @@ namespace osu.Game.Screens.Ranking
|
||||
});
|
||||
}
|
||||
|
||||
AddInternal(new HotkeyExitOverlay
|
||||
{
|
||||
Action = () =>
|
||||
{
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
|
||||
this.Exit();
|
||||
},
|
||||
});
|
||||
|
||||
if (player != null && AllowRetry)
|
||||
{
|
||||
buttons.Add(new RetryButton { Width = 300 });
|
||||
@ -400,6 +390,15 @@ namespace osu.Game.Screens.Ranking
|
||||
|
||||
switch (e.Action)
|
||||
{
|
||||
case GlobalAction.QuickExit:
|
||||
if (this.IsCurrentScreen())
|
||||
{
|
||||
this.Exit();
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GlobalAction.Select:
|
||||
StatisticsPanel.ToggleVisibility();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user