mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +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)
|
if (player != null && AllowRetry)
|
||||||
{
|
{
|
||||||
buttons.Add(new RetryButton { Width = 300 });
|
buttons.Add(new RetryButton { Width = 300 });
|
||||||
@ -400,6 +390,15 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
switch (e.Action)
|
switch (e.Action)
|
||||||
{
|
{
|
||||||
|
case GlobalAction.QuickExit:
|
||||||
|
if (this.IsCurrentScreen())
|
||||||
|
{
|
||||||
|
this.Exit();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case GlobalAction.Select:
|
case GlobalAction.Select:
|
||||||
StatisticsPanel.ToggleVisibility();
|
StatisticsPanel.ToggleVisibility();
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user