1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 04:52:55 +08:00

Make success rate percent move with the bar.

This commit is contained in:
DrabWeb 2017-09-12 23:46:21 -03:00
parent ba90fc87d0
commit d36fc13487

View File

@ -33,6 +33,7 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
var rate = (float)beatmap.OnlineInfo.PassCount / beatmap.OnlineInfo.PlayCount;
successPercent.Text = $"{Math.Round(rate * 100)}%";
successRate.Length = rate;
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);
graph.Metrics = Beatmap.Metrics;
}
@ -106,7 +107,6 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
base.UpdateAfterChildren();
graph.Padding = new MarginPadding { Top = header.DrawHeight };
percentContainer.Width = successRate.Length;
}
}
}