1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 19:27:24 +08:00

Merge pull request #27412 from frenzibyte/fix-cursor-rotation-stuff

Fix menu cursor tracking rotation while override by gameplay cursor
This commit is contained in:
Dean Herbert 2024-02-28 11:43:46 +08:00 committed by GitHub
commit b1d07cf933
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,12 +220,16 @@ namespace osu.Game.Graphics.Cursor
{ {
activeCursor.FadeTo(1, 250, Easing.OutQuint); activeCursor.FadeTo(1, 250, Easing.OutQuint);
activeCursor.ScaleTo(1, 400, Easing.OutQuint); activeCursor.ScaleTo(1, 400, Easing.OutQuint);
activeCursor.RotateTo(0, 400, Easing.OutQuint);
dragRotationState = DragRotationState.NotDragging;
} }
protected override void PopOut() protected override void PopOut()
{ {
activeCursor.FadeTo(0, 250, Easing.OutQuint); activeCursor.FadeTo(0, 250, Easing.OutQuint);
activeCursor.ScaleTo(0.6f, 250, Easing.In); activeCursor.ScaleTo(0.6f, 250, Easing.In);
activeCursor.RotateTo(0, 400, Easing.OutQuint);
dragRotationState = DragRotationState.NotDragging;
} }
private void playTapSample(double baseFrequency = 1f) private void playTapSample(double baseFrequency = 1f)