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:
parent
2e5ad31cc7
commit
18bb61897f
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user