mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Inline enabled setting
This commit is contained in:
parent
6bd633f8ce
commit
ff2d721029
@ -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 ");
|
||||
|
Loading…
Reference in New Issue
Block a user