Move SliderBall colour logic to OsuLegacySkinProvider

This commit is contained in:
Dean Herbert 2019-08-26 14:24:48 +09:00
parent 7b82121b85
commit db987c6077
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ private void sourceChanged()
var config = new SkinConfiguration(); var config = new SkinConfiguration();
if (hasHitCircle.Value) if (hasHitCircle.Value)
config.SliderPathRadius = legacy_circle_radius; config.SliderPathRadius = legacy_circle_radius;
// defaults should only be applied for non-beatmap skins (which are parsed via this constructor).
config.CustomColours["SliderBall"] =
source.GetValue<SkinConfiguration, Color4?>(s => s.CustomColours.TryGetValue("SliderBall", out var val) ? val : (Color4?)null)
?? new Color4(2, 170, 255, 255);
return config; return config;
}); });