2020-04-04 00:35:50 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
using osu.Game.Skinning;
|
|
|
|
using osuTK.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning
|
|
|
|
{
|
|
|
|
internal static class CatchSkinExtensions
|
|
|
|
{
|
2020-04-05 00:09:52 +08:00
|
|
|
public static IBindable<Color4> GetHyperDashCatcherColour(this ISkin skin)
|
|
|
|
=> skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash);
|
|
|
|
|
|
|
|
public static IBindable<Color4> GetHyperDashEndGlowColour(this ISkin skin)
|
|
|
|
=> skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashAfterImage) ??
|
|
|
|
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash);
|
|
|
|
|
2020-04-04 00:35:50 +08:00
|
|
|
public static IBindable<Color4> GetHyperDashFruitColour(this ISkin skin)
|
|
|
|
=> skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashFruit) ??
|
|
|
|
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash);
|
|
|
|
}
|
|
|
|
}
|