mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 05:02:53 +08:00
Merge pull request #29427 from frenzibyte/fix-ruleset-components-beatmap-skin
Fix beatmap skin always overriding ruleset HUD components
This commit is contained in:
commit
e7b4a2f451
@ -43,6 +43,10 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
if (base.GetDrawableComponent(lookup) is UserConfiguredLayoutContainer d)
|
||||
return d;
|
||||
|
||||
// we don't have enough assets to display these components (this is especially the case on a "beatmap" skin).
|
||||
if (!IsProvidingLegacyResources)
|
||||
return null;
|
||||
|
||||
// Our own ruleset components default.
|
||||
// todo: remove CatchSkinComponents.CatchComboCounter and refactor LegacyCatchComboCounter to be added here instead.
|
||||
return new DefaultSkinComponentsContainer(container =>
|
||||
|
@ -53,6 +53,10 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
if (base.GetDrawableComponent(lookup) is UserConfiguredLayoutContainer d)
|
||||
return d;
|
||||
|
||||
// we don't have enough assets to display these components (this is especially the case on a "beatmap" skin).
|
||||
if (!IsProvidingLegacyResources)
|
||||
return null;
|
||||
|
||||
// Our own ruleset components default.
|
||||
switch (containerLookup.Target)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user