diff --git a/osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.cs b/osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.cs index e9d087929f..eadf7f42bc 100644 --- a/osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.cs +++ b/osu.Game.Rulesets.Catch/Beatmaps/CatchBeatmap.cs @@ -26,21 +26,21 @@ namespace osu.Game.Rulesets.Catch.Beatmaps Name = @"Fruits", Content = fruits.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles), - Ratio = fruits / (float)sum, + BarDisplayLength = fruits / (float)sum, }, new BeatmapStatistic { Name = @"Juice Streams", Content = juiceStreams.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders), - Ratio = juiceStreams / (float)sum, + BarDisplayLength = juiceStreams / (float)sum, }, new BeatmapStatistic { Name = @"Banana Showers", Content = bananaShowers.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners), - Ratio = Math.Min(bananaShowers / 10f, 1), + BarDisplayLength = Math.Min(bananaShowers / 10f, 1), } }; } diff --git a/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmap.cs b/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmap.cs index 16e1751e95..3ee1b63800 100644 --- a/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmap.cs +++ b/osu.Game.Rulesets.Mania/Beatmaps/ManiaBeatmap.cs @@ -45,14 +45,14 @@ namespace osu.Game.Rulesets.Mania.Beatmaps Name = @"Notes", CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles), Content = notes.ToString(), - Ratio = notes / (float)sum, + BarDisplayLength = notes / (float)sum, }, new BeatmapStatistic { Name = @"Hold Notes", CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders), Content = holdNotes.ToString(), - Ratio = holdNotes / (float)sum, + BarDisplayLength = holdNotes / (float)sum, }, }; } diff --git a/osu.Game.Rulesets.Osu/Beatmaps/OsuBeatmap.cs b/osu.Game.Rulesets.Osu/Beatmaps/OsuBeatmap.cs index cc73f2860a..2600f63ab9 100644 --- a/osu.Game.Rulesets.Osu/Beatmaps/OsuBeatmap.cs +++ b/osu.Game.Rulesets.Osu/Beatmaps/OsuBeatmap.cs @@ -25,21 +25,21 @@ namespace osu.Game.Rulesets.Osu.Beatmaps Name = "Circles", Content = circles.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles), - Ratio = circles / (float)sum, + BarDisplayLength = circles / (float)sum, }, new BeatmapStatistic { Name = "Sliders", Content = sliders.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders), - Ratio = sliders / (float)sum, + BarDisplayLength = sliders / (float)sum, }, new BeatmapStatistic { Name = @"Spinners", Content = spinners.ToString(), CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners), - Ratio = Math.Min(spinners / 10f, 1), + BarDisplayLength = Math.Min(spinners / 10f, 1), } }; } diff --git a/osu.Game.Rulesets.Taiko/Beatmaps/TaikoBeatmap.cs b/osu.Game.Rulesets.Taiko/Beatmaps/TaikoBeatmap.cs index ad4413d84a..e8cd05ee73 100644 --- a/osu.Game.Rulesets.Taiko/Beatmaps/TaikoBeatmap.cs +++ b/osu.Game.Rulesets.Taiko/Beatmaps/TaikoBeatmap.cs @@ -25,21 +25,21 @@ namespace osu.Game.Rulesets.Taiko.Beatmaps Name = @"Hits", CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles), Content = hits.ToString(), - Ratio = hits / (float)sum, + BarDisplayLength = hits / (float)sum, }, new BeatmapStatistic { Name = @"Drumrolls", CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders), Content = drumRolls.ToString(), - Ratio = drumRolls / (float)sum, + BarDisplayLength = drumRolls / (float)sum, }, new BeatmapStatistic { Name = @"Swells", CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners), Content = swells.ToString(), - Ratio = Math.Min(swells / 10f, 1), + BarDisplayLength = Math.Min(swells / 10f, 1), } }; } diff --git a/osu.Game/Beatmaps/BeatmapStatistic.cs b/osu.Game/Beatmaps/BeatmapStatistic.cs index 6faf74d9c6..64e42f3f02 100644 --- a/osu.Game/Beatmaps/BeatmapStatistic.cs +++ b/osu.Game/Beatmaps/BeatmapStatistic.cs @@ -27,11 +27,8 @@ namespace osu.Game.Beatmaps public string Content; /// - /// The ratio of this statistic compared to other relevant statistics, or null if not applicable. + /// The length of a bar which visually represents this statistic's relevance in the beatmap. /// - /// - /// This is used to display a bar on top of the statistic with the given ratio. - /// - public float? Ratio; + public float? BarDisplayLength; } }