mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Make success rate percent move with the bar.
This commit is contained in:
@ -33,6 +33,7 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
|
|||||||
var rate = (float)beatmap.OnlineInfo.PassCount / beatmap.OnlineInfo.PlayCount;
|
var rate = (float)beatmap.OnlineInfo.PassCount / beatmap.OnlineInfo.PlayCount;
|
||||||
successPercent.Text = $"{Math.Round(rate * 100)}%";
|
successPercent.Text = $"{Math.Round(rate * 100)}%";
|
||||||
successRate.Length = rate;
|
successRate.Length = rate;
|
||||||
|
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);
|
||||||
|
|
||||||
graph.Metrics = Beatmap.Metrics;
|
graph.Metrics = Beatmap.Metrics;
|
||||||
}
|
}
|
||||||
@ -106,7 +107,6 @@ namespace osu.Game.Overlays.OnlineBeatmapSet
|
|||||||
base.UpdateAfterChildren();
|
base.UpdateAfterChildren();
|
||||||
|
|
||||||
graph.Padding = new MarginPadding { Top = header.DrawHeight };
|
graph.Padding = new MarginPadding { Top = header.DrawHeight };
|
||||||
percentContainer.Width = successRate.Length;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user