mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-07 23:07:01 +09:00
Populate accuracy-related fields for osu!catch scores
When populating from an osu!catch score, the `Droplets` and `Tiny Droplets` fields are set to 0 because `HitResult.LargeTickHit` and `HitResult.SmallTickHit` aren't used for setting them.
This commit is contained in:
parent
6f4c6d352d
commit
4d2d5debf2
1 changed files with 15 additions and 0 deletions
|
@ -1044,6 +1044,21 @@ namespace PerformanceCalculatorGUI.Screens
|
|||
mehsTextBox.Text = mehs.ToString();
|
||||
}
|
||||
|
||||
if (ruleset.Value?.ShortName == "fruits")
|
||||
{
|
||||
if (scoreInfo.Statistics.TryGetValue(HitResult.LargeTickHit, out int largeTickHits))
|
||||
{
|
||||
goodsTextBox.Value.Value = largeTickHits;
|
||||
goodsTextBox.Text = largeTickHits.ToString();
|
||||
}
|
||||
|
||||
if (scoreInfo.Statistics.TryGetValue(HitResult.SmallTickHit, out int smallTickHits))
|
||||
{
|
||||
mehsTextBox.Value.Value = smallTickHits;
|
||||
mehsTextBox.Text = smallTickHits.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
if (scoreInfo.Statistics.TryGetValue(HitResult.LargeTickMiss, out int largeTickMisses))
|
||||
{
|
||||
largeTickMissesTextBox.Value.Value = largeTickMisses;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue