mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
21 lines
740 B
C#
21 lines
740 B
C#
// 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 JetBrains.Annotations;
|
|
using osu.Framework.Bindables;
|
|
using osu.Game.Rulesets.Catch.UI;
|
|
using osu.Game.Skinning;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning
|
|
{
|
|
internal static class CatchSkinExtensions
|
|
{
|
|
[NotNull]
|
|
public static IBindable<Color4> GetHyperDashFruitColour(this ISkin skin)
|
|
=> skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDashFruit) ??
|
|
skin.GetConfig<CatchSkinColour, Color4>(CatchSkinColour.HyperDash) ??
|
|
new Bindable<Color4>(Catcher.DefaultHyperDashColour);
|
|
}
|
|
}
|