`ContentVisible` -> `HiddenByRulesetImplementation`

This commit is contained in:
Salman Ahmed 2021-05-31 09:24:26 +03:00
parent fb111e23d8
commit 4e186b0cf5
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ public override Drawable GetDrawableComponent(ISkinComponent component)
// catch may provide its own combo counter; hide the default.
// 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.ContentVisible = false;
legacyComboCounter.HiddenByRulesetImplementation = false;
}
return components;

View File

@ -48,13 +48,13 @@ public class LegacyComboCounter : CompositeDrawable, ISkinnableDrawable
private readonly Container counterContainer;
/// <summary>
/// Changes the visibility state of the combo counter internally without affecting its <see cref="SkinnableInfo"/>.
/// Hides the combo counter internally without affecting its <see cref="SkinnableInfo"/>.
/// </summary>
/// <remarks>
/// This is used for rulesets that provide their own combo counter and don't want the HUD one to be visible,
/// This is used for rulesets that provide their own combo counter and don't want this HUD one to be visible,
/// without potentially affecting the user's selected skin.
/// </remarks>
public bool ContentVisible
public bool HiddenByRulesetImplementation
{
set => counterContainer.Alpha = value ? 1 : 0;
}