mirror of https://github.com/ppy/osu
`ContentVisible` -> `HiddenByRulesetImplementation`
This commit is contained in:
parent
fb111e23d8
commit
4e186b0cf5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue