1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 00:34:47 +08:00

Transform CatchSkinColour lookup to skin configuration custom colours lookup

This commit is contained in:
Salman Ahmed
2020-04-05 00:10:25 +03:00
Unverified
parent 10e65c4f53
commit 55d076d6f3
@@ -65,6 +65,15 @@ namespace osu.Game.Rulesets.Catch.Skinning
public SampleChannel GetSample(ISampleInfo sample) => source.GetSample(sample);
public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup) => source.GetConfig<TLookup, TValue>(lookup);
public IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
{
switch (lookup)
{
case CatchSkinColour colour:
return source.GetConfig<SkinCustomColourLookup, TValue>(new SkinCustomColourLookup(colour));
}
return source.GetConfig<TLookup, TValue>(lookup);
}
}
}