1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:42:56 +08:00

rename variable used for mania lookup key storage

This commit is contained in:
mcendu 2020-03-31 17:22:46 +08:00
parent ec3d21e2b7
commit c0f8c1dc28
No known key found for this signature in database
GPG Key ID: FBCD5D45163D6364

View File

@ -120,14 +120,14 @@ namespace osu.Game.Skinning
case SkinCustomColourLookup customColour: case SkinCustomColourLookup customColour:
return SkinUtils.As<TValue>(getCustomColour(customColour.Lookup.ToString())); return SkinUtils.As<TValue>(getCustomColour(customColour.Lookup.ToString()));
case LegacyManiaSkinConfigurationLookup legacy: case LegacyManiaSkinConfigurationLookup maniaLookup:
if (!AllowManiaSkin) if (!AllowManiaSkin)
return null; return null;
if (!maniaConfigurations.TryGetValue(legacy.Keys, out var existing)) if (!maniaConfigurations.TryGetValue(maniaLookup.Keys, out var existing))
maniaConfigurations[legacy.Keys] = existing = new LegacyManiaSkinConfiguration(legacy.Keys); maniaConfigurations[maniaLookup.Keys] = existing = new LegacyManiaSkinConfiguration(maniaLookup.Keys);
switch (legacy.Lookup) switch (maniaLookup.Lookup)
{ {
case LegacyManiaSkinConfigurationLookups.HitPosition: case LegacyManiaSkinConfigurationLookups.HitPosition:
return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition)); return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition));