1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:47:29 +08:00

Inline enabled setting

This commit is contained in:
Dean Herbert 2024-06-15 17:34:04 +08:00
parent 6bd633f8ce
commit ff2d721029
No known key found for this signature in database

View File

@ -228,7 +228,8 @@ namespace osu.Game.Screens.Play.PlayerSettings
useAverageButton = new SettingsButton
{
Text = BeatmapOffsetControlStrings.CalibrateUsingLastPlay,
Action = () => Current.Value = lastPlayBeatmapOffset - lastPlayAverage
Action = () => Current.Value = lastPlayBeatmapOffset - lastPlayAverage,
Enabled = { Value = !Precision.AlmostEquals(lastPlayAverage, 0, Current.Precision / 2) }
},
globalOffsetText = new LinkFlowContainer
{
@ -237,8 +238,6 @@ namespace osu.Game.Screens.Play.PlayerSettings
}
});
useAverageButton.Enabled.Value = !Precision.AlmostEquals(lastPlayAverage, 0, Current.Precision / 2);
if (settings != null)
{
globalOffsetText.AddText("You can also ");