mirror of https://github.com/ppy/osu
Fix spinner flashing yellow glow before completion
This commit is contained in:
parent
a9f76e859f
commit
ba76089219
|
@ -93,6 +93,8 @@ protected override void LoadComplete()
|
|||
|
||||
drawableSpinner.RotationTracker.Complete.BindValueChanged(complete => updateComplete(complete.NewValue, 200));
|
||||
drawableSpinner.ApplyCustomUpdateState += updateStateTransforms;
|
||||
|
||||
updateStateTransforms(drawableSpinner, drawableSpinner.State.Value);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
|
@ -124,6 +126,9 @@ protected override void Update()
|
|||
|
||||
private void updateStateTransforms(DrawableHitObject drawableHitObject, ArmedState state)
|
||||
{
|
||||
if (!(drawableHitObject is DrawableSpinner))
|
||||
return;
|
||||
|
||||
centre.ScaleTo(0);
|
||||
mainContainer.ScaleTo(0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue