mirror of
https://github.com/osukey/osukey.git
synced 2025-06-30 07:38:04 +09: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)
|
private bool requiresBackgroundVisible => (scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays)
|
||||||
&& (sizeX.Value != 1 || sizeY.Value != 1)
|
&& (sizeX.Value != 1 || sizeY.Value != 1)
|
||||||
&& scalingMenuBackgroundDim.Value != 1f;
|
&& scalingMenuBackgroundDim.Value < 1;
|
||||||
|
|
||||||
private void updateSize()
|
private void updateSize()
|
||||||
{
|
{
|
||||||
|
@ -230,11 +230,12 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
if (s == dimSlider)
|
if (s == dimSlider)
|
||||||
{
|
{
|
||||||
s.CanBeShown.Value = scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays;
|
s.CanBeShown.Value = scalingMode.Value == ScalingMode.Everything || scalingMode.Value == ScalingMode.ExcludeOverlays;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
|
s.TransferValueOnCommit = scalingMode.Value == ScalingMode.Everything;
|
||||||
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
|
s.CanBeShown.Value = scalingMode.Value != ScalingMode.Off;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user