mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 09:42:57 +08:00
Use scale instead of rotation for overlay scroll button
This commit is contained in:
parent
9375f79879
commit
5223e0aeae
@ -163,7 +163,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
LastScrollTarget.BindValueChanged(target =>
|
||||
{
|
||||
spriteIcon.RotateTo(target.NewValue != null ? 180 : 0, fade_duration, Easing.OutQuint);
|
||||
spriteIcon.ScaleTo(target.NewValue != null ? new Vector2(1f, -1f) : Vector2.One, fade_duration, Easing.OutQuint);
|
||||
TooltipText = target.NewValue != null ? CommonStrings.ButtonsBackToPrevious : CommonStrings.ButtonsBackToTop;
|
||||
}, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user