Skip to content

Commit e2ab359

Browse files
authored
Merge pull request #267 from wulpine/catch-populate-acc
Populate accuracy-related fields for osu!catch scores
2 parents f341968 + 63b059d commit e2ab359

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

PerformanceCalculatorGUI/Screens/SimulateScreen.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,21 @@ private void populateSettingsFromScore(long scoreId)
10441044
mehsTextBox.Text = mehs.ToString();
10451045
}
10461046

1047+
if (ruleset.Value?.ShortName == "fruits")
1048+
{
1049+
if (scoreInfo.Statistics.TryGetValue(HitResult.LargeTickHit, out int largeTickHits))
1050+
{
1051+
goodsTextBox.Value.Value = largeTickHits;
1052+
goodsTextBox.Text = largeTickHits.ToString();
1053+
}
1054+
1055+
if (scoreInfo.Statistics.TryGetValue(HitResult.SmallTickHit, out int smallTickHits))
1056+
{
1057+
mehsTextBox.Value.Value = smallTickHits;
1058+
mehsTextBox.Text = smallTickHits.ToString();
1059+
}
1060+
}
1061+
10471062
if (scoreInfo.Statistics.TryGetValue(HitResult.LargeTickMiss, out int largeTickMisses))
10481063
{
10491064
largeTickMissesTextBox.Value.Value = largeTickMisses;

0 commit comments

Comments
 (0)