Hide the combo counter content rather than full death

This commit is contained in:
Salman Ahmed
2021-05-18 09:08:56 +03:00
parent f667ea3fd0
commit ff419af512
3 changed files with 36 additions and 21 deletions

View File

@ -32,9 +32,9 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
if (Source.GetDrawableComponent(component) is SkinnableTargetComponentsContainer components)
{
// catch may provide its own combo counter; hide the default.
// todo: this should probably be done in an elegant way.
// todo: this should be done in an elegant way per ruleset, defining which HUD skin components should be displayed.
foreach (var legacyComboCounter in components.OfType<LegacyComboCounter>())
legacyComboCounter.Expire();
legacyComboCounter.ContentVisible = false;
return components;
}