mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07:29 +08:00
commit
d1c198d9bf
@ -216,6 +216,11 @@ namespace osu.Game.Graphics.UserInterface
|
||||
});
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
protected override bool OnClick(InputState state)
|
||||
{
|
||||
var flash = new Box
|
||||
|
@ -224,6 +224,15 @@ namespace osu.Game.Screens.Play
|
||||
};
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
// eagerly pause when we lose window focus (if we are locally playing).
|
||||
if (!Game.IsActive && !HitRenderer.HasReplayLoaded)
|
||||
Pause();
|
||||
|
||||
base.Update();
|
||||
}
|
||||
|
||||
private void initializeSkipButton()
|
||||
{
|
||||
const double skip_required_cutoff = 3000;
|
||||
|
Loading…
Reference in New Issue
Block a user