1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Merge pull request #28465 from smoogipoo/hitobject-drawvis-display

Use more descriptive HitObject names for debugger displays
This commit is contained in:
Dean Herbert 2024-06-13 15:23:13 +09:00 committed by GitHub
commit b61a705f64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ using JetBrains.Annotations;
using Newtonsoft.Json; using Newtonsoft.Json;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Extensions.ListExtensions; using osu.Framework.Extensions.ListExtensions;
using osu.Framework.Extensions.TypeExtensions;
using osu.Framework.Lists; using osu.Framework.Lists;
using osu.Game.Audio; using osu.Game.Audio;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
@ -228,6 +229,8 @@ namespace osu.Game.Rulesets.Objects
return new HitSampleInfo(sampleName); return new HitSampleInfo(sampleName);
} }
public override string ToString() => $"{GetType().ReadableName()} @ {StartTime}";
} }
public static class HitObjectExtensions public static class HitObjectExtensions