mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 20:37:26 +08:00
Show bpm and length inclusive of mods
This commit is contained in:
parent
400142545d
commit
9ea15a3961
@ -181,13 +181,13 @@ namespace osu.Game.Skinning.Components
|
|||||||
return beatmap.Value.BeatmapInfo.Metadata.Source;
|
return beatmap.Value.BeatmapInfo.Metadata.Source;
|
||||||
|
|
||||||
case BeatmapAttribute.Length:
|
case BeatmapAttribute.Length:
|
||||||
return TimeSpan.FromMilliseconds(beatmap.Value.BeatmapInfo.Length).ToFormattedDuration();
|
return Math.Round(beatmap.Value.BeatmapInfo.Length / ModUtils.CalculateRateWithMods(mods.Value)).ToFormattedDuration();
|
||||||
|
|
||||||
case BeatmapAttribute.RankedStatus:
|
case BeatmapAttribute.RankedStatus:
|
||||||
return beatmap.Value.BeatmapInfo.Status.GetLocalisableDescription();
|
return beatmap.Value.BeatmapInfo.Status.GetLocalisableDescription();
|
||||||
|
|
||||||
case BeatmapAttribute.BPM:
|
case BeatmapAttribute.BPM:
|
||||||
return beatmap.Value.BeatmapInfo.BPM.ToLocalisableString(@"F2");
|
return FormatUtils.RoundBPM(beatmap.Value.BeatmapInfo.BPM, ModUtils.CalculateRateWithMods(mods.Value)).ToLocalisableString(@"F2");
|
||||||
|
|
||||||
case BeatmapAttribute.CircleSize:
|
case BeatmapAttribute.CircleSize:
|
||||||
return computeDifficulty().CircleSize.ToLocalisableString(@"F2");
|
return computeDifficulty().CircleSize.ToLocalisableString(@"F2");
|
||||||
|
Loading…
Reference in New Issue
Block a user