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
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public class ManiaLegacySkinTransformer : ISkin
private readonly ManiaBeatmap beatmap;
/// <summary>
/// Mapping of <see cref="HitResult"/> to ther corresponding
/// Mapping of <see cref="HitResult"/> to their corresponding
/// <see cref="LegacyManiaSkinConfigurationLookups"/> value.
/// </summary>
private static readonly IReadOnlyDictionary<HitResult, LegacyManiaSkinConfigurationLookups> hitresult_mapping
@ -129,11 +129,11 @@ public Drawable GetDrawableComponent(ISkinComponent component)
private Drawable getResult(HitResult result)
{
string image = GetConfig<ManiaSkinConfigurationLookup, string>(
string filename = GetConfig<ManiaSkinConfigurationLookup, string>(
new ManiaSkinConfigurationLookup(hitresult_mapping[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);