Skip to content

Commit 380c3d0

Browse files
committed
Zoom animation
1 parent ad1fdc6 commit 380c3d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

osu.Game.Rulesets.Osu/Skinning/AimErrorMeter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected override void LoadComplete()
219219
base.LoadComplete();
220220

221221
JudgmentSize.BindTo(aimErrorMeter.JudgmentSize);
222-
JudgmentSize.BindValueChanged(size => Size = new Vector2(size.NewValue), true);
222+
JudgmentSize.BindValueChanged(size => Size = new Vector2(size.NewValue));
223223
JudgmentStyle.BindTo(aimErrorMeter.JudgmentStyle);
224224
JudgmentStyle.BindValueChanged(style => Rotation = style.NewValue == HitPositionStyle.X ? 0 : 45);
225225
}
@@ -232,7 +232,9 @@ protected override void PrepareForUse()
232232
const int judgement_fade_out_duration = 5000;
233233

234234
this
235+
.ResizeTo(new Vector2(0))
235236
.FadeInFromZero(judgement_fade_in_duration, Easing.OutQuint)
237+
.ResizeTo(new Vector2(JudgmentSize.Value), judgement_fade_in_duration, Easing.OutQuint)
236238
.Then()
237239
.FadeOut(judgement_fade_out_duration)
238240
.Expire();

0 commit comments

Comments
 (0)