Include PropertyName in PerformanceDisplayAttribute

This commit is contained in:
Henry Lin
2022-01-17 20:45:25 +08:00
parent d014fef179
commit b81fc675e8
5 changed files with 16 additions and 10 deletions

View File

@ -29,10 +29,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty
foreach (var attribute in base.GetAttributesForDisplay())
yield return attribute;
yield return new PerformanceDisplayAttribute("Aim", Aim);
yield return new PerformanceDisplayAttribute("Speed", Speed);
yield return new PerformanceDisplayAttribute("Accuracy", Accuracy);
yield return new PerformanceDisplayAttribute("Flashlight Bonus", Flashlight);
yield return new PerformanceDisplayAttribute(nameof(Aim), "Aim", Aim);
yield return new PerformanceDisplayAttribute(nameof(Speed), "Speed", Speed);
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy);
yield return new PerformanceDisplayAttribute(nameof(Flashlight), "Flashlight Bonus", Flashlight);
}
}
}