mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 23:57:18 +09:00
Fix collision of external hide with internal logic in LegacyCatchComboCounter
This commit is contained in:
parent
2e3e4ac5be
commit
ea3d08d5a0
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Graphics;
|
||||||
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
using osu.Game.Rulesets.Catch.Objects.Drawables;
|
||||||
using osu.Game.Rulesets.Judgements;
|
using osu.Game.Rulesets.Judgements;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
@ -34,13 +35,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
if (player != null)
|
if (player != null)
|
||||||
{
|
{
|
||||||
showCombo.BindTo(player.ShowingOverlayComponents);
|
showCombo.BindTo(player.ShowingOverlayComponents);
|
||||||
showCombo.BindValueChanged(s =>
|
showCombo.BindValueChanged(s => this.FadeTo(s.NewValue ? 1 : 0, HUDOverlay.FADE_DURATION, HUDOverlay.FADE_EASING), true);
|
||||||
{
|
|
||||||
if (!s.NewValue)
|
|
||||||
ComboCounter?.Hide();
|
|
||||||
else
|
|
||||||
ComboCounter?.Show();
|
|
||||||
}, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user