Fix spinner flashing yellow glow before completion

This commit is contained in:
smoogipoo 2020-10-01 20:24:32 +09:00
parent a9f76e859f
commit ba76089219
1 changed files with 5 additions and 0 deletions

View File

@ -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);