mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Adjust transition time based on miss/hit
This commit is contained in:
parent
3f2a00d90d
commit
d87ab9c82d
@ -145,9 +145,11 @@ namespace osu.Game.Screens.Play.HUD
|
||||
if (v.NewValue >= GlowBarValue)
|
||||
finishMissDisplay();
|
||||
|
||||
this.TransformTo(nameof(HealthBarValue), v.NewValue, 300, Easing.OutQuint);
|
||||
double time = v.NewValue > GlowBarValue ? 500 : 250;
|
||||
|
||||
this.TransformTo(nameof(HealthBarValue), v.NewValue, time, Easing.OutQuint);
|
||||
if (resetMissBarDelegate == null)
|
||||
this.TransformTo(nameof(GlowBarValue), v.NewValue, 300, Easing.OutQuint);
|
||||
this.TransformTo(nameof(GlowBarValue), v.NewValue, time, Easing.OutQuint);
|
||||
}, true);
|
||||
|
||||
BarLength.BindValueChanged(l => Width = l.NewValue, true);
|
||||
|
Loading…
Reference in New Issue
Block a user