mirror of https://github.com/ppy/osu
Remove unnecessary check
This commit is contained in:
parent
bedb744a2e
commit
a3d90da7d4
|
@ -76,7 +76,7 @@ protected override void LoadComplete()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void UpdateVisuals()
|
protected virtual void UpdateVisuals()
|
||||||
{
|
{
|
||||||
ContentDisplayed = !EnableUserDim.Value || ShowDimContent;
|
ContentDisplayed = ShowDimContent;
|
||||||
|
|
||||||
dimContent.FadeTo(ContentDisplayed ? 1 : 0, BACKGROUND_FADE_DURATION, Easing.OutQuint);
|
dimContent.FadeTo(ContentDisplayed ? 1 : 0, BACKGROUND_FADE_DURATION, Easing.OutQuint);
|
||||||
dimContent.FadeColour(EnableUserDim.Value ? OsuColour.Gray(1 - (float)UserDimLevel.Value) : Color4.White, BACKGROUND_FADE_DURATION, Easing.OutQuint);
|
dimContent.FadeColour(EnableUserDim.Value ? OsuColour.Gray(1 - (float)UserDimLevel.Value) : Color4.White, BACKGROUND_FADE_DURATION, Easing.OutQuint);
|
||||||
|
|
Loading…
Reference in New Issue