1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 13:22:59 +08:00

Move implementation to transformer

This commit is contained in:
Endrik Tombak 2020-04-04 11:13:25 +03:00
parent d73c791a10
commit e1a67bdb96
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -132,6 +132,12 @@ namespace osu.Game.Rulesets.Osu.Skinning
return SkinUtils.As<TValue>(new BindableFloat(LEGACY_CIRCLE_RADIUS));
break;
case OsuSkinConfiguration.HitCircleOverlayAboveNumber:
// Quote from https://osu.ppy.sh/help/wiki/Skinning/skin.ini#%5Bgeneral%5D
// Old command: HitCircleOverlayAboveNumer (with typo) still works for legacy support
var rv = source.GetConfig<OsuSkinConfiguration, TValue>(OsuSkinConfiguration.HitCircleOverlayAboveNumber);
return rv ?? source.GetConfig<OsuSkinConfiguration, TValue>(OsuSkinConfiguration.HitCircleOverlayAboveNumer);
}
break;