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:
parent
ec3d21e2b7
commit
c0f8c1dc28
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user