mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Rename all remaining cases
This commit is contained in:
@ -23,16 +23,16 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
private readonly Bar successRate;
|
||||
private readonly Container percentContainer;
|
||||
|
||||
private BeatmapInfo beatmap;
|
||||
private BeatmapInfo beatmapInfo;
|
||||
|
||||
public BeatmapInfo Beatmap
|
||||
public BeatmapInfo BeatmapInfo
|
||||
{
|
||||
get => beatmap;
|
||||
get => beatmapInfo;
|
||||
set
|
||||
{
|
||||
if (value == beatmap) return;
|
||||
if (value == beatmapInfo) return;
|
||||
|
||||
beatmap = value;
|
||||
beatmapInfo = value;
|
||||
|
||||
updateDisplay();
|
||||
}
|
||||
@ -40,15 +40,15 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
|
||||
private void updateDisplay()
|
||||
{
|
||||
int passCount = beatmap?.OnlineInfo?.PassCount ?? 0;
|
||||
int playCount = beatmap?.OnlineInfo?.PlayCount ?? 0;
|
||||
int passCount = beatmapInfo?.OnlineInfo?.PassCount ?? 0;
|
||||
int playCount = beatmapInfo?.OnlineInfo?.PlayCount ?? 0;
|
||||
|
||||
var rate = playCount != 0 ? (float)passCount / playCount : 0;
|
||||
successPercent.Text = rate.ToLocalisableString(@"0.#%");
|
||||
successRate.Length = rate;
|
||||
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);
|
||||
|
||||
Graph.Metrics = beatmap?.Metrics;
|
||||
Graph.Metrics = beatmapInfo?.Metrics;
|
||||
}
|
||||
|
||||
public SuccessRate()
|
||||
|
Reference in New Issue
Block a user