mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Merge branch 'master' into key-counter-fixes
This commit is contained in:
commit
ec5f420818
@ -173,7 +173,11 @@ namespace osu.Game.Screens.Menu
|
|||||||
.Then(5500)
|
.Then(5500)
|
||||||
.FadeOut(250)
|
.FadeOut(250)
|
||||||
.ScaleTo(0.9f, 250, Easing.InQuint)
|
.ScaleTo(0.9f, 250, Easing.InQuint)
|
||||||
.Finally(d => this.Push(nextScreen));
|
.Finally(d =>
|
||||||
|
{
|
||||||
|
if (nextScreen != null)
|
||||||
|
this.Push(nextScreen);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ using osu.Framework.Graphics;
|
|||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
using osu.Framework.MathUtils;
|
using osu.Framework.MathUtils;
|
||||||
|
using osu.Framework.Threading;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play
|
namespace osu.Game.Screens.Play
|
||||||
{
|
{
|
||||||
@ -121,6 +122,12 @@ namespace osu.Game.Screens.Play
|
|||||||
handleBase.X = newX;
|
handleBase.X = newX;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnUserChange(double value) => OnSeek?.Invoke(value);
|
private ScheduledDelegate scheduledSeek;
|
||||||
|
|
||||||
|
protected override void OnUserChange(double value)
|
||||||
|
{
|
||||||
|
scheduledSeek?.Cancel();
|
||||||
|
scheduledSeek = Schedule(() => OnSeek?.Invoke(value));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user