예제 #1
0
파일: Button.cs 프로젝트: eu84567955/osu
        protected override bool OnHover(InputState state)
        {
            if (State != ButtonState.Expanded)
            {
                return(true);
            }

            sampleHover?.Play();

            box.ScaleTo(new Vector2(1.5f, 1), 500, Easing.OutElastic);

            double duration = TimeUntilNextBeat;

            icon.ClearTransforms();
            icon.RotateTo(rightward ? -10 : 10, duration, Easing.InOutSine);
            icon.ScaleTo(new Vector2(1, 0.9f), duration, Easing.Out);
            return(true);
        }