mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Fix beatmap info not showing individual difficulty bpm
This commit is contained in:
parent
2d8a74d776
commit
362fe62b4b
@ -58,16 +58,18 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
|
|
||||||
private void updateDisplay()
|
private void updateDisplay()
|
||||||
{
|
{
|
||||||
bpm.Value = BeatmapSet?.BPM.ToLocalisableString(@"0.##") ?? (LocalisableString)"-";
|
|
||||||
|
|
||||||
if (beatmapInfo == null)
|
if (beatmapInfo == null)
|
||||||
{
|
{
|
||||||
|
bpm.Value = "-";
|
||||||
|
|
||||||
length.Value = string.Empty;
|
length.Value = string.Empty;
|
||||||
circleCount.Value = string.Empty;
|
circleCount.Value = string.Empty;
|
||||||
sliderCount.Value = string.Empty;
|
sliderCount.Value = string.Empty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bpm.Value = beatmapInfo.BPM.ToLocalisableString(@"0.##");
|
||||||
|
|
||||||
length.Value = TimeSpan.FromMilliseconds(beatmapInfo.Length).ToFormattedDuration();
|
length.Value = TimeSpan.FromMilliseconds(beatmapInfo.Length).ToFormattedDuration();
|
||||||
|
|
||||||
if (beatmapInfo is not IBeatmapOnlineInfo onlineInfo) return;
|
if (beatmapInfo is not IBeatmapOnlineInfo onlineInfo) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user