Fix collision of external hide with internal logic in `LegacyCatchComboCounter`

This commit is contained in:
Dean Herbert 2022-10-12 15:22:46 +09:00
parent 2e3e4ac5be
commit ea3d08d5a0
1 changed files with 2 additions and 7 deletions

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Objects.Drawables;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Scoring;
@ -34,13 +35,7 @@ private void load(Player? player)
if (player != null)
{
showCombo.BindTo(player.ShowingOverlayComponents);
showCombo.BindValueChanged(s =>
{
if (!s.NewValue)
ComboCounter?.Hide();
else
ComboCounter?.Show();
}, true);
showCombo.BindValueChanged(s => this.FadeTo(s.NewValue ? 1 : 0, HUDOverlay.FADE_DURATION, HUDOverlay.FADE_EASING), true);
}
}