1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

Add ExpandNumberPiece configuration with OsuLegacySkinTransformer

This commit is contained in:
iiSaLMaN 2019-10-01 08:09:01 +03:00
parent 4880fd9e02
commit 812d33f850
2 changed files with 5 additions and 0 deletions

View File

@ -123,6 +123,10 @@ namespace osu.Game.Rulesets.Osu.Skinning
return SkinUtils.As<TValue>(new BindableFloat(legacy_circle_radius));
break;
case OsuSkinConfiguration.ExpandNumberPiece:
string legacyVersion = source.GetConfig<string, string>("Version")?.Value ?? "1";
return SkinUtils.As<TValue>(new BindableBool(double.TryParse(legacyVersion, out double version) && version < 2.0));
}
break;

View File

@ -7,6 +7,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
{
HitCirclePrefix,
HitCircleOverlap,
ExpandNumberPiece,
SliderBorderSize,
SliderPathRadius,
AllowSliderBallTint,