mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
DefaultBackAction -> BackAction, defaults to last button
The last button is more commonly the escape condition.
This commit is contained in:
@ -35,9 +35,9 @@ namespace osu.Game.Screens.Play
|
||||
public Action OnQuit;
|
||||
|
||||
/// <summary>
|
||||
/// Action that is invoked if <see cref="GlobalAction.Back"/> is triggered.
|
||||
/// Action that is invoked when <see cref="GlobalAction.Back"/> is triggered.
|
||||
/// </summary>
|
||||
protected virtual Action DefaultBackAction => () => InternalButtons.Children.First().TriggerOnClick();
|
||||
protected virtual Action BackAction => () => InternalButtons.Children.Last().TriggerOnClick();
|
||||
|
||||
public abstract string Header { get; }
|
||||
public abstract string Description { get; }
|
||||
@ -231,7 +231,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
if (action == GlobalAction.Back)
|
||||
{
|
||||
DefaultBackAction.Invoke();
|
||||
BackAction.Invoke();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user