1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 18:23:04 +08:00

rename a few variables and fix typo

This commit is contained in:
mcendu 2020-06-13 18:47:40 +08:00
parent 5655e090d1
commit 4eeb22ca18

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
private readonly ManiaBeatmap beatmap; private readonly ManiaBeatmap beatmap;
/// <summary> /// <summary>
/// Mapping of <see cref="HitResult"/> to ther corresponding /// Mapping of <see cref="HitResult"/> to their corresponding
/// <see cref="LegacyManiaSkinConfigurationLookups"/> value. /// <see cref="LegacyManiaSkinConfigurationLookups"/> value.
/// </summary> /// </summary>
private static readonly IReadOnlyDictionary<HitResult, LegacyManiaSkinConfigurationLookups> hitresult_mapping private static readonly IReadOnlyDictionary<HitResult, LegacyManiaSkinConfigurationLookups> hitresult_mapping
@ -129,11 +129,11 @@ namespace osu.Game.Rulesets.Mania.Skinning
private Drawable getResult(HitResult result) private Drawable getResult(HitResult result)
{ {
string image = GetConfig<ManiaSkinConfigurationLookup, string>( string filename = GetConfig<ManiaSkinConfigurationLookup, string>(
new ManiaSkinConfigurationLookup(hitresult_mapping[result]) new ManiaSkinConfigurationLookup(hitresult_mapping[result])
)?.Value ?? default_hitresult_skin_filenames[result]; )?.Value ?? default_hitresult_skin_filenames[result];
return this.GetAnimation(image, true, true); return this.GetAnimation(filename, true, true);
} }
public Texture GetTexture(string componentName) => source.GetTexture(componentName); public Texture GetTexture(string componentName) => source.GetTexture(componentName);