1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-23 07:27:45 +08:00

move to ctor

This commit is contained in:
cdwcgt 2023-03-29 22:59:54 +09:00
parent 19b7036b95
commit 5d395e6d37
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2

View File

@ -171,7 +171,8 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
LabelText = GameplaySettingsStrings.BackgroundDim,
Current = scalingBackgroundDim,
KeyboardStep = 0.01f,
DisplayAsPercentage = true
DisplayAsPercentage = true,
TransferValueOnCommit = false
},
}
},
@ -232,7 +233,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
{
if (s == dimSlider)
{
s.TransferValueOnCommit = false;
s.CanBeShown.Value = scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays;
return;
}