mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 22:42:56 +08:00
Move implementation to transformer
This commit is contained in:
parent
d73c791a10
commit
e1a67bdb96
@ -62,9 +62,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
bool? numberSetting = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value;
|
bool overlayAboveNumber = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.HitCircleOverlayAboveNumber)?.Value ?? true;
|
||||||
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);
|
||||||
|
@ -132,6 +132,12 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
return SkinUtils.As<TValue>(new BindableFloat(LEGACY_CIRCLE_RADIUS));
|
return SkinUtils.As<TValue>(new BindableFloat(LEGACY_CIRCLE_RADIUS));
|
||||||
|
|
||||||
break;
|
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;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user