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

fix BeatmapInfoWedge not counting Circles/Sliders correctly

This commit is contained in:
Aergwyn 2017-12-12 13:24:18 +01:00
parent a7f5eb0a3d
commit c6eaaf658e
5 changed files with 9 additions and 9 deletions

View File

@ -5,7 +5,6 @@ using osu.Game.Beatmaps;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Rulesets.Mods; using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Osu.Mods; using osu.Game.Rulesets.Osu.Mods;
using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.OsuDifficulty; using osu.Game.Rulesets.Osu.OsuDifficulty;
using osu.Game.Rulesets.Osu.UI; using osu.Game.Rulesets.Osu.UI;
using osu.Game.Rulesets.UI; using osu.Game.Rulesets.UI;
@ -18,6 +17,7 @@ using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.Osu.Scoring; using osu.Game.Rulesets.Osu.Scoring;
using osu.Game.Rulesets.Osu.Edit; using osu.Game.Rulesets.Osu.Edit;
using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects.Legacy.Osu;
namespace osu.Game.Rulesets.Osu namespace osu.Game.Rulesets.Osu
{ {
@ -37,14 +37,14 @@ namespace osu.Game.Rulesets.Osu
{ {
new BeatmapStatistic new BeatmapStatistic
{ {
Name = @"Circle count", Name = @"Circle Count",
Content = beatmap.Beatmap.HitObjects.Count(h => h is HitCircle).ToString(), Content = beatmap.Beatmap.HitObjects.Count(h => h is ConvertHit).ToString(),
Icon = FontAwesome.fa_dot_circle_o Icon = FontAwesome.fa_dot_circle_o
}, },
new BeatmapStatistic new BeatmapStatistic
{ {
Name = @"Slider count", Name = @"Slider Count",
Content = beatmap.Beatmap.HitObjects.Count(h => h is Slider).ToString(), Content = beatmap.Beatmap.HitObjects.Count(h => h is ConvertSlider).ToString(),
Icon = FontAwesome.fa_circle_o Icon = FontAwesome.fa_circle_o
} }
}; };

View File

@ -11,7 +11,7 @@ using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Rulesets.Objects.Legacy namespace osu.Game.Rulesets.Objects.Legacy
{ {
internal abstract class ConvertSlider : HitObject, IHasCurve public abstract class ConvertSlider : HitObject, IHasCurve
{ {
/// <summary> /// <summary>
/// Scoring distance with a speed-adjusted beat length of 1 second. /// Scoring distance with a speed-adjusted beat length of 1 second.

View File

@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Objects.Legacy.Osu
/// <summary> /// <summary>
/// Legacy osu! Hit-type, used for parsing Beatmaps. /// Legacy osu! Hit-type, used for parsing Beatmaps.
/// </summary> /// </summary>
internal sealed class ConvertHit : HitObject, IHasPosition, IHasCombo public sealed class ConvertHit : HitObject, IHasPosition, IHasCombo
{ {
public Vector2 Position { get; set; } public Vector2 Position { get; set; }

View File

@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Objects.Legacy.Osu
/// <summary> /// <summary>
/// Legacy osu! Slider-type, used for parsing Beatmaps. /// Legacy osu! Slider-type, used for parsing Beatmaps.
/// </summary> /// </summary>
internal sealed class ConvertSlider : Legacy.ConvertSlider, IHasPosition, IHasCombo public sealed class ConvertSlider : Legacy.ConvertSlider, IHasPosition, IHasCombo
{ {
public Vector2 Position { get; set; } public Vector2 Position { get; set; }

View File

@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Objects.Legacy.Osu
/// <summary> /// <summary>
/// Legacy osu! Spinner-type, used for parsing Beatmaps. /// Legacy osu! Spinner-type, used for parsing Beatmaps.
/// </summary> /// </summary>
internal sealed class ConvertSpinner : HitObject, IHasEndTime, IHasPosition public sealed class ConvertSpinner : HitObject, IHasEndTime, IHasPosition
{ {
public double EndTime { get; set; } public double EndTime { get; set; }