Update overlay containers in lines with framework changes.

Allows closing the MusicController using escape.
This commit is contained in:
Dean Herbert
2017-02-09 12:46:53 +09:00
parent 2e5ad31cc7
commit 18bb61897f
4 changed files with 9 additions and 4 deletions

View File

@ -22,6 +22,8 @@ namespace osu.Game.Overlays.Pause
private const int button_height = 70;
private const float background_alpha = 0.75f;
protected override bool HideOnEscape => false;
public Action OnResume;
public Action OnRetry;
public Action OnQuit;
@ -83,6 +85,7 @@ namespace osu.Game.Overlays.Pause
resume();
return true;
}
return base.OnKeyDown(state, args);
}