mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00:00
Minor readability refactors
This commit is contained in:
parent
7a840e1d82
commit
ab4f66fad3
@ -155,7 +155,7 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
private bool requiresBackgroundVisible => (scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays)
|
||||
&& (sizeX.Value != 1 || sizeY.Value != 1)
|
||||
&& scalingMenuBackgroundDim.Value != 1f;
|
||||
&& scalingMenuBackgroundDim.Value < 1;
|
||||
|
||||
private void updateSize()
|
||||
{
|
||||
|
@ -230,11 +230,12 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
if (s == dimSlider)
|
||||
{
|
||||
s.CanBeShown.Value = scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays;
|
||||
return;
|
||||
}
|
||||
|
||||
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
|
||||
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
|
||||
else
|
||||
{
|
||||
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
|
||||
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user