mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Adjust difficulty multiplier scale transition on mod overlay
The previous transition was supposed to be a center-anchored elastic scale-in, but this didn't work as intended - because the multiplier ended up inside of an auto-sized right-aligned container, the animation itself would end up being anchored right. Attempts to remove the scale transition resulted in a rather jarring-looking result, so swap out the elastic scale-in for a sweep-in effect from the top, to match the header and avoid introducing too many directions of movement. Delay values tweaked "to taste" - can be adjusted further if there is an alternative set of values that feels better.
This commit is contained in:
parent
328561f5c8
commit
170df01b46
@ -428,9 +428,9 @@ namespace osu.Game.Overlays.Mods
|
||||
base.PopIn();
|
||||
|
||||
multiplierDisplay?
|
||||
.Delay(fade_in_duration * 0.65f)
|
||||
.FadeIn(fade_in_duration / 2, Easing.OutQuint)
|
||||
.ScaleTo(1, fade_in_duration, Easing.OutElastic);
|
||||
.Delay(fade_in_duration / 5)
|
||||
.FadeIn(fade_in_duration, Easing.OutQuint)
|
||||
.MoveToY(0, fade_in_duration, Easing.OutQuint);
|
||||
|
||||
int nonFilteredColumnCount = 0;
|
||||
|
||||
@ -465,7 +465,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
multiplierDisplay?
|
||||
.FadeOut(fade_out_duration / 2, Easing.OutQuint)
|
||||
.ScaleTo(0.75f, fade_out_duration, Easing.OutQuint);
|
||||
.MoveToY(-distance, fade_out_duration / 2, Easing.OutQuint);
|
||||
|
||||
int nonFilteredColumnCount = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user