mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +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
|
useAverageButton = new SettingsButton
|
||||||
{
|
{
|
||||||
Text = BeatmapOffsetControlStrings.CalibrateUsingLastPlay,
|
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
|
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)
|
if (settings != null)
|
||||||
{
|
{
|
||||||
globalOffsetText.AddText("You can also ");
|
globalOffsetText.AddText("You can also ");
|
||||||
|
Loading…
Reference in New Issue
Block a user