Move legacy conversion to LegacySkin

This commit is contained in:
Dean Herbert
2018-03-12 11:30:13 +09:00
parent 1447ca55a3
commit c70be29eda
2 changed files with 17 additions and 18 deletions

View File

@ -29,6 +29,22 @@ namespace osu.Game.Skinning
public override Drawable GetDrawableComponent(string componentName)
{
switch (componentName)
{
case "Play/Miss":
componentName = "hit0";
break;
case "Play/Meh":
componentName = "hit50";
break;
case "Play/Good":
componentName = "hit100";
break;
case "Play/Great":
componentName = "hit300";
break;
}
var texture = textures.Get(componentName);
if (texture == null) return null;