1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:02:55 +08:00

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
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
4 changed files with 9 additions and 4 deletions

View File

@ -19,6 +19,8 @@ namespace osu.Game.Graphics.UserInterface.Volume
{
private VolumeMeter volumeMeterMaster;
protected override bool HideOnEscape => false;
private void volumeChanged(object sender, EventArgs e)
{
Show();

View File

@ -374,10 +374,6 @@ namespace osu.Game.Overlays
base.Dispose(isDisposing);
}
protected override bool OnClick(InputState state) => true;
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
//placeholder for toggling
protected override void PopIn() => FadeIn(100);

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);
}

View File

@ -24,6 +24,10 @@ namespace osu.Game.Overlays.Toolbar
private ToolbarModeSelector modeSelector;
private ToolbarUserArea userArea;
protected override bool HideOnEscape => false;
protected override bool BlockPassThroughInput => false;
private const int transition_time = 500;
private const float alpha_hovering = 0.8f;