Handle combo colour lookups in other skins

This commit is contained in:
Salman Ahmed
2021-05-05 07:11:45 +03:00
parent 9be8d3f0d2
commit 78794935b4
2 changed files with 11 additions and 10 deletions

View File

@ -127,14 +127,8 @@ namespace osu.Game.Tests.Gameplay
{
switch (lookup)
{
case GlobalSkinColours global:
switch (global)
{
case GlobalSkinColours.ComboColours:
return SkinUtils.As<TValue>(new Bindable<IReadOnlyList<Color4>>(ComboColours));
}
break;
case SkinComboColourLookup comboColour:
return SkinUtils.As<TValue>(new Bindable<Color4>(ComboColours[comboColour.ColourIndex % ComboColours.Count]));
}
throw new NotImplementedException();