mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Adjust fail on missing logic to match original.
This commit is contained in:
parent
fd2700a5b4
commit
2153865de5
@ -38,6 +38,7 @@ namespace osu.Game.Screens.Select
|
|||||||
private APIAccess api;
|
private APIAccess api;
|
||||||
|
|
||||||
private ScheduledDelegate pendingBeatmapSwitch;
|
private ScheduledDelegate pendingBeatmapSwitch;
|
||||||
|
|
||||||
private BeatmapInfo beatmap;
|
private BeatmapInfo beatmap;
|
||||||
public BeatmapInfo Beatmap
|
public BeatmapInfo Beatmap
|
||||||
{
|
{
|
||||||
@ -226,12 +227,15 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
else if (failOnMissing)
|
else if (failOnMissing)
|
||||||
{
|
{
|
||||||
ratings.FadeTo(0.25f, transition_duration);
|
|
||||||
ratings.Metrics = new BeatmapMetrics
|
ratings.Metrics = new BeatmapMetrics
|
||||||
{
|
{
|
||||||
Ratings = new int[10],
|
Ratings = new int[10],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ratings.FadeTo(0.25f, transition_duration);
|
||||||
|
}
|
||||||
|
|
||||||
if (hasRetriesFails)
|
if (hasRetriesFails)
|
||||||
{
|
{
|
||||||
@ -240,13 +244,16 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
else if (failOnMissing)
|
else if (failOnMissing)
|
||||||
{
|
{
|
||||||
failRetryContainer.FadeTo(0.25f, transition_duration);
|
|
||||||
failRetryGraph.Metrics = new BeatmapMetrics
|
failRetryGraph.Metrics = new BeatmapMetrics
|
||||||
{
|
{
|
||||||
Fails = new int[100],
|
Fails = new int[100],
|
||||||
Retries = new int[100],
|
Retries = new int[100],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
failRetryContainer.FadeTo(0.25f, transition_duration);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearStats()
|
private void clearStats()
|
||||||
|
Loading…
Reference in New Issue
Block a user