mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 03:42:56 +08:00
Move SliderBall colour logic to OsuLegacySkinProvider
This commit is contained in:
parent
7b82121b85
commit
db987c6077
@ -51,6 +51,12 @@ namespace osu.Game.Rulesets.Osu
|
|||||||
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;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user