mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Add helper method to make direct casts be used
This commit is contained in:
@ -62,16 +62,16 @@ namespace osu.Game.Skinning
|
||||
switch (global)
|
||||
{
|
||||
case GlobalSkinConfiguration.ComboColours:
|
||||
return new Bindable<List<Color4>>(Configuration.ComboColours) as IBindable<TValue>;
|
||||
return SkinUtils.As<TValue>(new Bindable<List<Color4>>(Configuration.ComboColours));
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case GlobalSkinColour colour:
|
||||
return getCustomColour(colour.ToString()) as IBindable<TValue>;
|
||||
return SkinUtils.As<TValue>(getCustomColour(colour.ToString()));
|
||||
|
||||
case SkinCustomColourLookup customColour:
|
||||
return getCustomColour(customColour.Lookup.ToString()) as IBindable<TValue>;
|
||||
return SkinUtils.As<TValue>(getCustomColour(customColour.Lookup.ToString()));
|
||||
|
||||
default:
|
||||
try
|
||||
|
Reference in New Issue
Block a user