mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
ContentVisible
-> HiddenByRulesetImplementation
This commit is contained in:
parent
fb111e23d8
commit
4e186b0cf5
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
// 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 @@ namespace osu.Game.Screens.Play.HUD
|
||||
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
Block a user