Add a skin extension for simplifying falling back on hyper-dash colours

This commit is contained in:
Salman Ahmed
2020-04-03 19:35:50 +03:00
parent 16a4525a9c
commit 7e82f5740b
3 changed files with 18 additions and 8 deletions

View File

@ -64,8 +64,7 @@ namespace osu.Game.Rulesets.Catch.Objects.Drawables
});
var hyperDashColour =
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashFruit)?.Value ??
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash)?.Value ??
skin.GetHyperDashFruitColour()?.Value ??
Catcher.DefaultHyperDashColour;
if (hitObject.HyperDash)