mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +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.
|
// 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.
|
// 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>())
|
foreach (var legacyComboCounter in components.OfType<LegacyComboCounter>())
|
||||||
legacyComboCounter.ContentVisible = false;
|
legacyComboCounter.HiddenByRulesetImplementation = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return components;
|
return components;
|
||||||
|
@ -48,13 +48,13 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
private readonly Container counterContainer;
|
private readonly Container counterContainer;
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <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.
|
/// without potentially affecting the user's selected skin.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public bool ContentVisible
|
public bool HiddenByRulesetImplementation
|
||||||
{
|
{
|
||||||
set => counterContainer.Alpha = value ? 1 : 0;
|
set => counterContainer.Alpha = value ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user