1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Support this typo for old skins

This commit is contained in:
Endrik Tombak 2020-04-03 20:56:52 +03:00
parent e012af6616
commit d73c791a10
2 changed files with 5 additions and 2 deletions

View File

@ -62,7 +62,9 @@ namespace osu.Game.Rulesets.Osu.Skinning
} }
}; };
bool overlayAboveNumber = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value ?? true; bool? numberSetting = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value;
bool? numerSetting = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumer)?.Value;
bool overlayAboveNumber = numberSetting ?? numerSetting ?? true;
if (!overlayAboveNumber) if (!overlayAboveNumber)
ChangeInternalChildDepth(hitCircleText, -float.MaxValue); ChangeInternalChildDepth(hitCircleText, -float.MaxValue);

View File

@ -12,6 +12,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
AllowSliderBallTint, AllowSliderBallTint,
CursorExpand, CursorExpand,
CursorRotate, CursorRotate,
HitCircleOverlayAboveNumber HitCircleOverlayAboveNumber,
HitCircleOverlayAboveNumer // Some old skins will have this typo
} }
} }