1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

allow lookup of stage decoration paths and add test images

This commit is contained in:
mcendu 2020-07-05 13:02:50 +08:00
parent ec689ce824
commit 5c2959eeb6
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364
4 changed files with 12 additions and 1 deletions

View File

@ -9,4 +9,6 @@ Hit50: mania/hit50
Hit100: mania/hit100 Hit100: mania/hit100
Hit200: mania/hit200 Hit200: mania/hit200
Hit300: mania/hit300 Hit300: mania/hit300
Hit300g: mania/hit300g Hit300g: mania/hit300g
StageLeft: mania/stage-left
StageRight: mania/stage-right

View File

@ -250,6 +250,15 @@ namespace osu.Game.Skinning
case LegacyManiaSkinConfigurationLookups.RightStageImage: case LegacyManiaSkinConfigurationLookups.RightStageImage:
return SkinUtils.As<TValue>(getManiaImage(existing, "StageRight")); return SkinUtils.As<TValue>(getManiaImage(existing, "StageRight"));
case LegacyManiaSkinConfigurationLookups.BottomStageImage:
return SkinUtils.As<TValue>(getManiaImage(existing, "StageBottom"));
case LegacyManiaSkinConfigurationLookups.LightImage:
return SkinUtils.As<TValue>(getManiaImage(existing, "StageLight"));
case LegacyManiaSkinConfigurationLookups.HitTargetImage:
return SkinUtils.As<TValue>(getManiaImage(existing, "StageHint"));
case LegacyManiaSkinConfigurationLookups.LeftLineWidth: case LegacyManiaSkinConfigurationLookups.LeftLineWidth:
Debug.Assert(maniaLookup.TargetColumn != null); Debug.Assert(maniaLookup.TargetColumn != null);
return SkinUtils.As<TValue>(new Bindable<float>(existing.ColumnLineWidth[maniaLookup.TargetColumn.Value])); return SkinUtils.As<TValue>(new Bindable<float>(existing.ColumnLineWidth[maniaLookup.TargetColumn.Value]));