1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 14:13:18 +08:00

Fix calibration being back-to-front

This commit is contained in:
Dean Herbert 2022-03-01 20:41:54 +09:00
parent 6c09237956
commit 222f50d211
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ namespace osu.Game.Tests.Visual.Gameplay
AddAssert("Has calibration button", () => offsetControl.ChildrenOfType<SettingsButton>().Any());
AddStep("Press button", () => offsetControl.ChildrenOfType<SettingsButton>().Single().TriggerClick());
AddAssert("Offset is adjusted", () => offsetControl.Current.Value == average_error);
AddAssert("Offset is adjusted", () => offsetControl.Current.Value == -average_error);
AddStep("Remove reference score", () => offsetControl.ReferenceScore.Value = null);
AddAssert("No calibration button", () => !offsetControl.ChildrenOfType<SettingsButton>().Any());

View File

@ -198,7 +198,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
useAverageButton = new SettingsButton
{
Text = BeatmapOffsetControlStrings.CalibrateUsingLastPlay,
Action = () => Current.Value = lastPlayAverage
Action = () => Current.Value = -lastPlayAverage
},
});
}