Merge remote-tracking branch 'upstream/master' into peppy-fix-tooltip-behaviour

This commit is contained in:
Dean Herbert 2018-07-12 19:55:24 +09:00
commit 68fa6f03f0
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@
using osu.Game.Graphics.Containers;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Input;
namespace osu.Game.Screens.Menu
{
@ -345,12 +346,16 @@ protected override void Update()
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
if (args.Button != MouseButton.Left) return false;
logoBounceContainer.ScaleTo(0.9f, 1000, Easing.Out);
return true;
}
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
if (args.Button != MouseButton.Left) return false;
logoBounceContainer.ScaleTo(1f, 500, Easing.OutElastic);
return true;
}