mirror of
https://github.com/ppy/osu-tools.git
synced 2025-06-07 23:07:01 +09:00
Pass LegacyTotalScore
on simulate screen
This commit is contained in:
parent
27a65d4a4a
commit
31075c993e
1 changed files with 6 additions and 1 deletions
|
@ -733,7 +733,8 @@ namespace PerformanceCalculatorGUI.Screens
|
|||
Statistics = statistics,
|
||||
Mods = appliedMods.Value.ToArray(),
|
||||
TotalScore = score,
|
||||
Ruleset = ruleset.Value
|
||||
Ruleset = ruleset.Value,
|
||||
LegacyTotalScore = legacyTotalScore,
|
||||
}, difficultyAttributes);
|
||||
|
||||
performanceAttributesContainer.Attributes.Value = AttributeConversion.ToDictionary(ppAttributes);
|
||||
|
@ -985,6 +986,8 @@ namespace PerformanceCalculatorGUI.Screens
|
|||
notificationDisplay.Display(new Notification(message));
|
||||
}
|
||||
|
||||
private long? legacyTotalScore;
|
||||
|
||||
private void populateSettingsFromScore(long scoreId)
|
||||
{
|
||||
if (scoreIdPopulateButton.State.Value == ButtonState.Loading)
|
||||
|
@ -1009,6 +1012,8 @@ namespace PerformanceCalculatorGUI.Screens
|
|||
ruleset.Value = rulesets.GetRuleset(scoreInfo.RulesetID);
|
||||
appliedMods.Value = scoreInfo.Mods.Select(x => x.ToMod(ruleset.Value.CreateInstance())).ToList();
|
||||
|
||||
legacyTotalScore = scoreInfo.LegacyTotalScore;
|
||||
|
||||
fullScoreDataSwitch.Current.Value = true;
|
||||
|
||||
// TODO: this shouldn't be done in 2 lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue