1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +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:
return SkinUtils.As<TValue>(getCustomColour(customColour.Lookup.ToString()));
case LegacyManiaSkinConfigurationLookup legacy:
case LegacyManiaSkinConfigurationLookup maniaLookup:
if (!AllowManiaSkin)
return null;
if (!maniaConfigurations.TryGetValue(legacy.Keys, out var existing))
maniaConfigurations[legacy.Keys] = existing = new LegacyManiaSkinConfiguration(legacy.Keys);
if (!maniaConfigurations.TryGetValue(maniaLookup.Keys, out var existing))
maniaConfigurations[maniaLookup.Keys] = existing = new LegacyManiaSkinConfiguration(maniaLookup.Keys);
switch (legacy.Lookup)
switch (maniaLookup.Lookup)
{
case LegacyManiaSkinConfigurationLookups.HitPosition:
return SkinUtils.As<TValue>(new Bindable<float>(existing.HitPosition));